import React, { PropTypes } from 'react'
import { Router, hashHistory } from 'dva/router'
import AppView from './widget/Layout/App/AppView'
import { request } from './utils'
import Cookie from 'js-cookie'
import config from './config/config'

// 全局注入路由路径键值对映射
window.MODULE_TO_ROUTES = {}
window.ROUTES_TO_MODEL = {}
window.CURR_TAB_KEY = '/'

// DVA注册model方法
const cached = {}
const registerModel = (app, model, routeObj) => {
  let { namespace, path } = getPickRouteObj(model, routeObj)
  model.pathname = path
  if (!cached[namespace]) {
    if (!!routeObj) {
      model.namespace = namespace
    }
    app.model(model)
    cached[namespace] = 1
  }
}

// 修改路由路径
const getRoutePath = function (routeObj) {
  let path = '';
  // 路由字段匹配条件修改，原来的判断条件：-1 === routeObj.path.indexOf('/home')
  if ('/home' !== routeObj.path) {
    path = `/home/${routeObj.path}`
  } else {
    path = routeObj.path
  }
  return path
}

// 获得新的路由对象
const getPickRouteObj = function (model, routeObj) {
  let obj = {}
  if (!routeObj) {
    obj.namespace = model.namespace
    obj.path = ''
  } else {
    obj.namespace = routeObj.namespace
    obj.path = getRoutePath(routeObj)
  }
  return obj
}

// 设置路径键值对到全局models2Routes
const setModel2Routes = function (app, route) {
  if (!!route.routeObj) {
    let routeObj = route.routeObj
    let copyRouteObj = JSON.parse(JSON.stringify(routeObj))
    copyRouteObj.path = getRoutePath(copyRouteObj)
    // app._models[0].state.model2Routes[route.pathKey] = route.path
    window.MODULE_TO_ROUTES[routeObj.namespace] = routeObj
    window.ROUTES_TO_MODEL[copyRouteObj.path] = copyRouteObj
  }
}

// 路由路径键值对映射
const getPathKeyRoutes = function (app, routes) {
  if (0 !== routes.length) {
    let rootRoute = routes[routes.length - 1]
    let { childRoutes } = rootRoute

    if (!childRoutes || 0 === childRoutes.length) {
      setModel2Routes(app, rootRoute)
    } else {
      childRoutes.push(rootRoute)
      childRoutes.forEach((route, i) => {
        setModel2Routes(app, route)
      })
    }
  }
}

// 进入路由之前的处理，检查是否已登录
const beforeEnter = (nextState, replace, next) => {
  //进入路由先解绑所有的排序事件
  document.onkeydown = "";
  next()
}

const Routers = function ({ history, app }) {
  const routes = [
    {
      path: '/',
      component: () => {
        return <div> {hashHistory.push('/home')} </div>
      }
    },
    {
      path: '/login',
      name: '登录',
      getComponent(nextState, cb) {
        require.ensure([], require => {
          cb(null, require('./widget/Layout/Login/LoginView'))
        }, 'loginView')
      },
    },
    // 注册页
    {
      path: '/register',
      name: '注册',
      getComponent(nextState, cb) {
        require.ensure([], require => {
          cb(null, require('./widget/Layout/Register/RegisterView'))
        }, 'registerView')
      },
    },
    {
      path: 'home',
      name: '首页',
      component: AppView,
      getIndexRoute(nextState, cb) {
        require.ensure([], require => {
          let tmpAuth = Cookie.get(config.cookie.auth)
          if (!tmpAuth) {
            hashHistory.push('/login');
            return false;
          }
          registerModel(app, require('./pages/default/defaultMod'))
          cb(null, require('./pages/default/defaultView'))
        }, 'TableDemo')
      },
      childRoutes: [
        // 默认首页
        {
          path: 'index',
          name: '首页',
          routeObj: {
            namespace: 'defaultModel',
            path: 'index',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/default/defaultMod'), self.routeObj)
              cb(null, require('./pages/default/defaultView'))
            }, 'defaultMod')
          },
          onEnter: beforeEnter
        },
        /***********************       美房管理        ****************************/
        // 美房管理 - 楼盘基本信息管理
        {
          path: 'buildingAdmin/baseinfo',
          name: '楼盘基本信息管理',
          routeObj: {
            namespace: 'baseinfo',
            path: 'buildingAdmin/baseinfo',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/baseinfo/baseinfoMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/baseinfo/baseinfoView'));
            }, 'baseinfo');
          },
          onEnter: beforeEnter
        },
        // 美房管理 - 楼盘详情
        {
          path: 'buildingAdmin/baseinfoDetail',
          name: '楼盘详情',
          routeObj: {
            namespace: 'baseinfoDetail',
            path: 'buildingAdmin/baseinfoDetail',
            urlArray: ['/home/buildingAdmin/baseinfoDetail','/home/buildingAdmin/baseinfo']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/baseinfoDetail/baseinfoDetailMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/baseinfoDetail/baseinfoDetailView'));
            }, 'baseinfoDetail');
          },
          onEnter: beforeEnter
        },
        {
          path: 'oldCommunity/oldCommunity',
          name: '老旧小区管理',
          routeObj: {
            namespace: 'oldCommunity',
            path: 'oldCommunity/oldCommunity',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/oldCommunity/oldCommunityMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/oldCommunity/oldCommunityView'));
            }, 'oldCommunity');
          },
          onEnter: beforeEnter
        },
        {
          path: 'buildingAdmin/oldCommunityEdit',
          name: '老旧小区管理',
          routeObj: {
            namespace: 'oldCommunityEdit',
            path: 'buildingAdmin/oldCommunityEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/oldCommunityEdit/oldCommunityEditMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/oldCommunityEdit/oldCommunityEditView'));
            }, 'oldCommunityEdit');
          },
          onEnter: beforeEnter
        },
        {
          path: 'progresConstruction/progresConstruction',
          name: '在建工程',
          routeObj: {
            namespace: 'progresConstruction',
            path: 'progresConstruction/progresConstruction',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/progresConstruction/progresConstructionMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/progresConstruction/progresConstructionView'));
            }, 'progresConstruction');
          },
          onEnter: beforeEnter
        },
        {
          path: 'buildingAdmin/progresConstructionEdit',
          name: '在建工程',
          routeObj: {
            namespace: 'progresConstructionEdit',
            path: 'buildingAdmin/progresConstructionEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/progresConstructionEdit/progresConstructionEditMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/progresConstructionEdit/progresConstructionEditView'));
            }, 'progresConstructionEdit');
          },
          onEnter: beforeEnter
        },
        {
          path: 'protectAdmin/publicRent',
          name: '公租房管理',
          routeObj: {
            namespace: 'publicRent',
            path: 'protectAdmin/publicRent',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/publicRent/publicRentMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/publicRent/publicRentView'));
            }, 'publicRent');
          },
          onEnter: beforeEnter
        },
        {
          path: 'protectAdmin/protectRent',
          name: '保障性租赁住房管理',
          routeObj: {
            namespace: 'protectRent',
            path: 'protectAdmin/protectRent',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/protectRent/protectRentMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/protectRent/protectRentView'));
            }, 'protectRent');
          },
          onEnter: beforeEnter
        },
        {
          path: 'protectAdmin/tenantRent',
          name: '人才公寓管理',
          routeObj: {
            namespace: 'tenantRent',
            path: 'protectAdmin/tenantRent',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/tenantRent/tenantRentMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/tenantRent/tenantRentView'));
            }, 'tenantRent');
          },
          onEnter: beforeEnter
        },
        {
          path: 'auditAdmin/forRent',
          name: '市场化租房',
          routeObj: {
            namespace: 'forRent',
            path: 'auditAdmin/forRent',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forRent/forRentMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forRent/forRentView'));
            }, 'forRent');
          },
          onEnter: beforeEnter
        },
        {
          path: 'auditAdmin/forRentEdit',
          name: '租房房源详情',
          routeObj: {
            namespace: 'forRentEdit',
            path: 'auditAdmin/forRentEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forRentEdit/forRentEditMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forRentEdit/forRentEditView'));
            }, 'oldCommunityEdit');
          },
          onEnter: beforeEnter
        },        {
          path: 'auditAdmin/forSale',
          name: '二手房房源管理',
          routeObj: {
            namespace: 'forSale',
            path: 'auditAdmin/forSale',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forSale/forSaleMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forSale/forSaleView'));
            }, 'forRent');
          },
          onEnter: beforeEnter
        },
        {
          path: 'auditAdmin/forSaleEdit',
          name: '二手房房源详情',
          routeObj: {
            namespace: 'forSaleEdit',
            path: 'buildingAdmin/forSaleEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forSaleEdit/forSaleEditMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forSaleEdit/forSaleEditView'));
            }, 'oldCommunityEdit');
          },
          onEnter: beforeEnter
        },
        {
          path: 'empty',
          name: '模块开发中',
          getComponent(nextState, cb) {
            require.ensure([], require => {
              cb(null, require('./pages/empty/emptyView'))
            }, 'emptyView')
          },
        },
        {
          path: 'noAuth',
          name: '没有权限',
          getComponent(nextState, cb) {
            require.ensure([], require => {
              cb(null, require('./pages/noauth/noAuthView'))
            }, 'noAuthView')
          },
        },
        // 美房管理 - 户型管理
         {
          path: 'buildingAdmin/houseTypeAdmin',
          name: '户型管理',
          routeObj: {
            namespace: 'houseTypeAdmin',
            path: 'buildingAdmin/houseTypeAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/houseTypeAdmin/houseType/houseTypeMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/houseTypeAdmin/houseType/houseTypeView'));
            }, 'houseTypeAdmin');
          },
          onEnter: beforeEnter
        },
        // 美房管理 - 户型管理详情
         {
          path: 'buildingAdmin/houseTypeEdit',
          name: '户型管理详情',
          routeObj: {
            namespace: 'houseTypeEdit',
            path: 'buildingAdmin/houseTypeEdit',
            urlArray: ['/home/buildingAdmin/houseTypeEdit','/home/buildingAdmin/houseTypeAdmin']
          },
           // E:/workspace/midea/mideadc-admin-html/src/pages/mideaRealtyAdmin/buildingAdmin/houseTypeAdmin/houseTypeEdit/houseTypeEditMod.js
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/houseTypeAdmin/houseTypeEdit/houseTypeEditMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/houseTypeAdmin/houseTypeEdit/houseTypeEditView'));
            }, 'houseTypeEdit');
          },
          onEnter: beforeEnter
        },
        // 美房管理 - 楼栋管理
         {
          path: 'buildingAdmin/premisesAdmin',
          name: '楼栋管理',
          routeObj: {
            namespace: 'premisesAdmin',
            path: 'buildingAdmin/premisesAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/premisesAdmin/premises/premisesMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/premisesAdmin/premises/premisesView'));
            }, 'premisesAdmin');
          },
          onEnter: beforeEnter
        },
        // 美房管理 - 楼栋管理详情
         {
          path: 'buildingAdmin/premisesDetail',
          name: '楼栋管理详情',
          routeObj: {
            namespace: 'premisesDetail',
            path: 'buildingAdmin/premisesDetail',
            urlArray: ['/home/buildingAdmin/premisesDetail','/home/buildingAdmin/premisesAdmin']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/premisesAdmin/premisesDetail/premisesDetailMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/premisesAdmin/premisesDetail/premisesDetailView'));
            }, 'premisesDetail');
          },
          onEnter: beforeEnter
        },
        // 美房管理  标签管理
        { 
          path: 'labelList',
          name: '标签管理',
          routeObj: {
            namespace: 'labelListModel',
            path: 'labelList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/labelAdmin/labelList/labelListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/labelAdmin/labelList/labelListView'))
            }, 'labelList')
          },
          onEnter: beforeEnter
        },
        /**********************************问卷调查 ****************************************/
        {
          path: 'questionnaire',
          name: '问卷发布',
          routeObj: {
            namespace: 'questionnaire',
            path: 'questionnaire',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/questionnaireAdmin/questionnaire/questionnaireMod'), self.routeObj);
              cb(null, require('./pages/questionnaireAdmin/questionnaire/questionnaireView'));
            }, 'questionnaire');
          },
          onEnter: beforeEnter
        },
        {
          path: 'chartAdmin/chart',
          name: '领导驾驶舱',
          routeObj: {
            namespace: 'chart',
            path: 'chartAdmin/chart',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/chartAdmin/chart/chartMod'), self.routeObj);
              cb(null, require('./pages/chartAdmin/chart/chartView'));
            }, 'chart');
          },
          onEnter: beforeEnter
        },
        /***********************       资讯与活动管理管理        ****************************/
        // 资讯与活动管理 - 美房资讯管理
        {
          path: 'infoAdmin/infoList',
          name: '政策发布',
          routeObj: {
            namespace: 'infoListAdminModel',
            path: 'infoAdmin/infoList',
            urlArray: ['/home/infoAdmin/infoDetail','/home/infoAdmin/infoList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoList/infoListMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/infoList/infoListView'));
            }, 'infoList');
          },
          onEnter: beforeEnter
        },
         // 资讯与活动管理 - 新建/编辑资讯   pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod.js
        {
          path: 'infoAdmin/infoDetail',
          name: '新建/编辑资讯',
          routeObj: {
            namespace: 'infoDetailMod',
            path: 'infoAdmin/infoDetail',
            urlArray: ['/home/infoAdmin/infoDetail','/home/infoAdmin/infoList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailView'));
            }, 'infoDetail');
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/fiscalFund',
          name: '财政资金供给发布',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'infoAdmin/fiscalFund',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'landAdmin/planPublish',
          name: '计划发布',
          routeObj: {
            namespace: 'planPublish',
            path: 'infoAdmin/planPublish',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'planPublish');
          },
          onEnter: beforeEnter
        },
        {
          path: 'landAdmin/landPublish',
          name: '供地发布',
          routeObj: {
            namespace: 'landPublish',
            path: 'infoAdmin/landPublish',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'landPublish');
          },
          onEnter: beforeEnter
        },
        {
          path: 'landAdmin/landStatistics',
          name: '土地成交信息统计',
          routeObj: {
            namespace: 'landStatistics',
            path: 'infoAdmin/landStatistics',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'landStatistics');
          },
          onEnter: beforeEnter
        },
        // 资讯与活动管理 - 活动报名管理  pages/mideaRealtyAdmin/InfoAdmin/activityList/activityListMod.js
        {
          path: 'infoAdmin/activityList',
          name: '活动报名管理',
          routeObj: {
            namespace: 'activityList',
            path: 'infoAdmin/activityList',
            urlArray: ['/home/infoAdmin/activityDetail','/home/infoAdmin/activityList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/activityList/activityListMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/activityList/activityListView'));
            }, 'activityList');
          },
          onEnter: beforeEnter
        },
        // 资讯与活动管理-活动专区
        {
          path: 'infoAdmin/activityAreaList',
          name: '活动专区',
          routeObj: {
            namespace: 'activityAreaList',
            path: 'infoAdmin/activityAreaList',
            urlArray: ['/home/infoAdmin/activityAreaDetail']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/activityArea/activityAreaMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/activityArea/activityAreaView'));
            }, 'activityAreaList');
          },
          onEnter: beforeEnter
        },
        // 新建/编辑活动专区
        {
          path: 'infoAdmin/activityAreaDetail',
          name: '新建/编辑活动专区',
          routeObj: {
            namespace: 'activityDetailMod',
            path: 'infoAdmin/activityAreaDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/activityAreaDetail/activityAreaDetailMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/activityAreaDetail/activityAreaDetailView'));
            }, 'activityAreaDetail');
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/activityAreaStatistics',
          name: '活动专区统计',
          routeObj: {
            namespace: 'activityAreaStatisticsModel',
            path: 'infoAdmin/activityAreaStatistics',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/activityAreaStatistics/activityAreaStatisticsModel'), self.routeObj)
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/activityAreaStatistics/activityAreaStatisticsView'))
            }, 'activityAreaStatistics')
          },
          onEnter: beforeEnter
        },
         // 资讯与活动管理 - 新建/编辑活动
  
        {
          path: 'infoAdmin/activityDetail',
          name: '新建/编辑活动',
          routeObj: {
            namespace: 'activityDetailMod',
            path: 'infoAdmin/activityDetail',
            urlArray: ['/home/infoAdmin/activityDetail','/home/infoAdmin/activityList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/activityDetail/activityDetailMod'), self.routeObj);
              cb(null, require('./pages/mideaRealtyAdmin/InfoAdmin/activityDetail/activityDetailView'));
            }, 'activityDetail');
          },
          onEnter: beforeEnter
        },
         //优惠券列表
         {
          path: 'infoAdmin/couponList',
          name: '优惠券列表',
          routeObj: {
            namespace: 'couponListModel',
            path: 'infoAdmin/couponList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/couponAdmin/couponList/couponListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/couponAdmin/couponList/couponListView'))
            }, 'couponList')
          },
          onEnter: beforeEnter
        },
         //优惠券详情
         {
          path: 'couponAdmin/couponDetail',
          name: '优惠券详情',
          routeObj: {
            namespace: 'couponDetailModel',
            path: 'couponAdmin/couponDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/couponAdmin/couponDetail/couponDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/couponAdmin/couponDetail/couponDetailView'))
            }, 'couponDetail')
          },
          onEnter: beforeEnter
        },
         //新增优惠券
          {
            path: 'couponAdmin/couponAdd',
            name: '新增优惠券',
            routeObj: {
              namespace: 'couponAddModel',
              path: 'couponAdmin/couponAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/marketingAdmin/couponAdmin/couponAdd/couponAddMod'), self.routeObj)
                cb(null, require('./pages/marketingAdmin/couponAdmin/couponAdd/couponAddView'))
              }, 'couponAdd')
            },
            onEnter: beforeEnter
          },

          //优惠券报表
          {
              path: 'couponAdmin/couponReport',
              name: '优惠券报表',
              routeObj: {
                  namespace: 'couponReportModel',
                  path: 'couponAdmin/couponReport',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/marketingAdmin/couponAdmin/couponReport/couponReportMod'), self.routeObj)
                  cb(null, require('./pages/marketingAdmin/couponAdmin/couponReport/couponReportView'))
              }, 'couponReport')
              },
              onEnter: beforeEnter
          },
          
           //礼品列表
         {
          path: 'infoAdmin/giftList',
          name: '礼品列表',
          routeObj: {
            namespace: 'giftListModel',
            path: 'infoAdmin/giftList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftAdmin/giftList/giftListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftAdmin/giftList/giftListView'))
            }, 'giftList')
          },
          onEnter: beforeEnter
        },
         //新增礼品
         {
          path: 'infoAdmin/giftAdd',
          name: '新增礼品',
          routeObj: {
            namespace: 'giftAddModel',
            path: 'infoAdmin/giftAdd',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftAdmin/giftAdd/giftAddMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftAdmin/giftAdd/giftAddView'))
            }, 'giftAdd')
          },
          onEnter: beforeEnter
        },
        //礼品详情
        {
          path: 'infoAdmin/giftDetail',
          name: '礼品详情',
          routeObj: {
            namespace: 'giftDetailModel',
            path: 'infoAdmin/giftDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftAdmin/giftDetail/giftDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftAdmin/giftDetail/giftDetailView'))
            }, 'giftDetail')
          },
          onEnter: beforeEnter
        },
         //礼品登记列表
         {
          path: 'infoAdmin/giftRegistrationList',
          name: '礼品登记列表',
          routeObj: {
            namespace: 'giftRegistrationListModel',
            path: 'infoAdmin/giftRegistrationList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftRegistration/giftRegistrationList/giftRegistrationListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftRegistration/giftRegistrationList/giftRegistrationListView'))
            }, 'gigiftRegistrationListftDetail')
          },
          onEnter: beforeEnter
        },

         //礼品登记详情
         {
          path: 'infoAdmin/giftRegistrationDetail',
          name: '礼品登记详情',
          routeObj: {
            namespace: 'giftRegistrationDetailModel',
            path: 'infoAdmin/giftRegistrationDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftRegistration/giftRegistrationDetail/giftRegistrationDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftRegistration/giftRegistrationDetail/giftRegistrationDetailView'))
            }, 'giftRegistrationDetail')
          },
          onEnter: beforeEnter
        },
        //礼品领取信息
        {
          path: 'infoAdmin/giftReceiveInfo',
          name: '礼品详情',
          routeObj: {
            namespace: 'giftReceiveInfoModel',
            path: 'infoAdmin/giftReceiveInfo',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/giftRegistration/giftReceiveInfo/giftReceiveInfoMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/giftRegistration/giftReceiveInfo/giftReceiveInfoView'))
            }, 'giftRegistrationDetail')
          },
          onEnter: beforeEnter
        },


        {
          path: 'infoAdmin/liveList',
          name: '直播列表',
          routeObj: {
            namespace: 'liveListModel',
            path: 'infoAdmin/liveList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/liveAdmin/liveList/liveListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/liveAdmin/liveList/liveListView'))
            }, 'liveList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/liveDetail',
          name: '直播新增/编辑',
          routeObj: {
            namespace: 'liveDetailModel',
            path: 'infoAdmin/liveDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/liveAdmin/liveDetail/liveDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/liveAdmin/liveDetail/liveDetailView'))
            }, 'liveDetail')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/livePlatformList',
          name: '直播平台管理',
          routeObj: {
            namespace: 'livePlatformListModel',
            path: 'infoAdmin/livePlatformList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/liveAdmin/livePlatformList/livePlatformListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/liveAdmin/livePlatformList/livePlatformListView'))
            }, 'livePlatformList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/liveStatistics',
          name: '直播统计',
          routeObj: {
            namespace: 'liveStatisticsModel',
            path: 'infoAdmin/liveStatistics',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/liveAdmin/liveStatistics/liveStatisticsMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/liveAdmin/liveStatistics/liveStatisticsView'))
            }, 'liveStatistics')
          },
          onEnter: beforeEnter
        },
        {
          path: 'setCenter/updateDescSetting',
          name: '消息通知',
          routeObj: {
            namespace: 'updateDescSettingListModel',
            path: 'setCenter/updateDescSetting',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/updateDescSettingAdmin/updateDescSettingList/updateDescSettingListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/updateDescSettingAdmin/updateDescSettingList/updateDescSettingListView'))
            }, 'updateDescSettingList')
          },
          onEnter: beforeEnter
        },

        /***********************       商品管理        ****************************/
        {
          path: 'commodity/commodityList',
          name: '商品列表',
          routeObj: {
            namespace: 'commodityListModel',
            path: 'commodity/commodityList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/commodity/commodityListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/commodity/commodityListView'))
            }, 'commodityListMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'commodity/commodityEidt/commodityEidt',
          name: '新建/编辑商品',
          routeObj: {
            namespace: 'commodityEditMod',
            path: 'commodity/commodityEidt/commodityEidt',
            urlArray: ['/home/commodity/commodityEidt/commodityEidt','/home/commodity/commodityList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/commodity/commodityEidt/commodityEditMod'), self.routeObj);
              cb(null, require('./pages/marketingAdmin/commodity/commodityEidt/commodityEditView'));
            }, 'infoDetail');
          },
          onEnter: beforeEnter
        },
        /***********************       秒杀管理        ****************************/
        // 秒杀-秒杀活动列表
        {
          path: 'seckillAuctions/activityList',
          name: '创建秒杀活动',
          routeObj: {
            namespace: 'seckillactivityListModel',
            path: 'seckillAuctions/activityList',
            urlArray: ['/home/seckillAuctions/activityDetail','/home/seckillAuctions/activityList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/activityList/activityListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/activityList/activityListView'))
            }, 'activityListMod')
          },
          onEnter: beforeEnter
        },

        // 秒杀-秒杀活动详情
        {
          path: 'seckillAuctions/activityDetail',
          name: '秒杀活动详情',
          routeObj: {
            namespace: 'seckillactivityDetailModel',
            path: 'seckillAuctions/activityDetail',
            urlArray: ['/home/seckillAuctions/activityDetail','/home/seckillAuctions/activityList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/activityDetail/activityDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/activityDetail/activityDetailView'))
            }, 'activityDetailMod')
          },
          onEnter: beforeEnter
        },

        // 秒杀-秒杀活动商品列表
        {
          path: 'seckillAuctions/productList',
          name: '配置秒杀商品',
          routeObj: {
            namespace: 'seckillproductListModel',
            path: 'seckillAuctions/productList',
            urlArray: ['/home/seckillAuctions/productEdit','/home/seckillAuctions/productList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/productList/productListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/productList/productListView'))
            }, 'productListMod')
          },
          onEnter: beforeEnter
        },

        // 秒杀-配置秒杀活动商品
        {
          path: 'seckillAuctions/productEdit',
          name: '配置秒杀活动商品',
          routeObj: {
            namespace: 'seckillproductEdit',
            path: 'seckillAuctions/productEdit',
            urlArray: ['/home/seckillAuctions/productEdit','/home/seckillAuctions/productList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/productEdit/productEditMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/productEdit/productEditView'))
            }, 'productEditMod')
          },
          onEnter: beforeEnter
        },
        // 秒杀-订单列表
        {
          path: 'seckillAuctions/orderList',
          name: '查看秒杀订单',
          routeObj: {
            namespace: 'seckillorderList',
            path: 'seckillAuctions/orderList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/orderList/orderListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/orderList/orderListView'))
            }, 'orderListMod')
          },
          onEnter: beforeEnter
        },
     
        // 秒杀-活动报名列表
        {
          path: 'seckillAuctions/enrollList',
          name: '秒杀活动报名',
          routeObj: {
            namespace: 'seckillenrollList',
            path: 'seckillAuctions/enrollList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/seckill/enrollList/enrollListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/seckill/enrollList/enrollListView'))
            }, 'enrollListMod')
          },
          onEnter: beforeEnter
        },
        // 秒杀-指定账号
        // {
        //   path: 'seckill/designatedAccount',
        //   name: '秒杀订单列表',
        //   routeObj: {
        //     namespace: 'seckilldesignatedAccount',
        //     path: 'seckill/designatedAccount',
        //     urlArray: []
        //   },
        //   getComponent(nextState, cb) {
        //     let self = this
        //     require.ensure([], require => {
        //       registerModel(app, require('./pages/marketingAdmin/seckill/designatedAccount/designatedAccountMod'), self.routeObj)
        //       cb(null, require('./pages/marketingAdmin/seckill/designatedAccount/designatedAccountView'))
        //     }, 'designatedAccountMod')
        //   },
        //   onEnter: beforeEnter
        // },
        /***********************       竞拍管理        ****************************/
        // 竞拍-竞拍活动列表
        {
          path: 'seckillAuctions/activityList1',
          name: '创建竞拍活动',
          routeObj: {
            namespace: 'auctionsactivityListModel',
            path: 'seckillAuctions/activityList1',
            urlArray: ['/home/seckillAuctions/activityDetail1','/home/seckillAuctions/activityList1','/home/seckillAuctions/bidding1']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/activityList/activityListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/activityList/activityListView'))
            }, 'activityListMod')
          },
          onEnter: beforeEnter
        },

        // 竞拍-竞拍活动详情
        {
          path: 'seckillAuctions/activityDetail1',
          name: '竞拍活动详情',
          routeObj: {
            namespace: 'auctionsactivityDetailModel',
            path: 'seckillAuctions/activityDetail1',
            urlArray: ['/home/seckillAuctions/activityDetail1','/home/seckillAuctions/activityList1','/home/seckillAuctions/bidding1']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/activityDetail/activityDetailMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/activityDetail/activityDetailView'))
            }, 'activityDetailMod')
          },
          onEnter: beforeEnter
        },
        // 竞拍-竞拍出价
        {
          path: 'seckillAuctions/bidding1',
          name: '竞拍出价',
          routeObj: {
            namespace: 'auctionsbiddingModel',
            path: 'seckillAuctions/bidding1',
            urlArray: ['/home/seckillAuctions/bidding1','/home/seckillAuctions/activityList1']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/bidding/biddingMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/bidding/biddingView'))
            }, 'biddingMod')
          },
          onEnter: beforeEnter
        },

        // 竞拍-竞拍活动商品列表
        {
          path: 'seckillAuctions/productList1',
          name: '配置竞拍商品',
          routeObj: {
            namespace: 'auctionsproductListModel',
            path: 'seckillAuctions/productList1',
            urlArray: ['/home/seckillAuctions/productEdit1','/home/seckillAuctions/productList1']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/productList/productListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/productList/productListView'))
            }, 'productListMod')
          },
          onEnter: beforeEnter
        },

        // 竞拍-配置竞拍活动商品
        {
          path: 'seckillAuctions/productEdit1',
          name: '配置竞拍活动商品',
          routeObj: {
            namespace: 'auctionsproductEdit',
            path: 'seckillAuctions/productEdit1',
            urlArray: ['/home/seckillAuctions/productEdit1','/home/seckillAuctions/productList1']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/productEdit/productEditMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/productEdit/productEditView'))
            }, 'productEditMod')
          },
          onEnter: beforeEnter
        },
        // 竞拍-订单列表
        {
          path: 'seckillAuctions/orderList1',
          name: '查看竞拍订单',
          routeObj: {
            namespace: 'auctionsorderList',
            path: 'seckillAuctions/orderList1',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/orderList/orderListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/orderList/orderListView'))
            }, 'orderListMod')
          },
          onEnter: beforeEnter
        },
        // 秒杀-活动报名列表
        {
          path: 'seckillAuctions/enrollList1',
          name: '竞拍活动报名',
          routeObj: {
            namespace: 'auctionenrollList',
            path: 'seckillAuctions/enrollList1',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/marketingAdmin/auctions/enrollList/enrollListMod'), self.routeObj)
              cb(null, require('./pages/marketingAdmin/auctions/enrollList/enrollListView'))
            }, 'enrollListMod')
          },
          onEnter: beforeEnter
        },
        /***********************       业务管理        ****************************/
        // 业务管理 - 预约看房管理
        {
          path: 'bookingAdmin/bookingList',
          name: '预约看房管理',
          routeObj: {
            namespace: 'bookingListModel',
            path: 'bookingAdmin/bookingList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/saleAdmin/bookingAdmin/bookingList/bookingListMod'), self.routeObj);
              cb(null, require('./pages/saleAdmin/bookingAdmin/bookingList/bookingListView'));
            }, 'bookingList');
          },
          onEnter: beforeEnter
        },
        // 业务管理 - 预约看房明细
        {
          path: 'bookingAdmin/bookingDetail',
          name: '预约看房明细',
          routeObj: {
            namespace: 'bookingDetailModel',
            path: 'bookingAdmin/bookingDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/saleAdmin/bookingAdmin/bookingDetail/bookingDetailMod'), self.routeObj);
              cb(null, require('./pages/saleAdmin/bookingAdmin/bookingDetail/bookingDetailView'));
            }, 'bookingDetail');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/registeredUserStatistics',
          name: '注册用户查询',
          routeObj: {
            namespace: 'registeredUserStatisticsModel',
            path: 'businessAdmin/registeredUserStatistics',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/registeredUserStatistics/registeredUserStatisticsMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/registeredUserStatistics/registeredUserStatisticsView'));
            }, 'registeredUserStatisticsModel');
          },
          onEnter: beforeEnter
        },{
          path: 'businessAdmin/registeredUserList',
          name: '注册用户列表',
          routeObj: {
            namespace: 'registeredUserListModel',
            path: 'businessAdmin/registeredUserList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/registeredUserList/registeredUserListMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/registeredUserList/registeredUserListView'));
            }, 'registeredUserListModel');
          },
          onEnter: beforeEnter
        },
        {
          path: 'systemAdmin/feedbackDetail',
          name: '意见反馈管理详情',
          routeObj: {
            namespace: 'feedbackDetailModel',
            path: 'systemAdmin/feedbackDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/feedback/feedbackDetail/feedbackDetailMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/feedback/feedbackDetail/feedbackDetailView'))
            }, 'feedbackDetail')
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/agentList',
          name: '经纪人查询',
          routeObj: {
            namespace: 'agentListModel',
            path: 'businessAdmin/agentList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/agentList/agentListMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/agentList/agentListView'));
            }, 'agentListModel');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/agentDetail',
          name: '经纪人详情',
          routeObj: {
            namespace: 'agentDetailModel',
            path: 'businessAdmin/agentDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/agentDetail/agentDetailMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/agentDetail/agentDetailView'));
            }, 'agentDetailMod');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/lifeService',
          name: '生活服务',
          routeObj: {
            namespace: 'lifeServiceModel',
            path: 'businessAdmin/lifeService',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/lifeService/lifeServiceMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/lifeService/lifeServiceView'));
            }, 'lifeServiceMod');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/lifeServiceEdit',
          name: '生活服务详情',
          routeObj: {
            namespace: 'lifeServiceEdit',
            path: 'businessAdmin/lifeServiceEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/lifeServiceEdit/lifeServiceEditMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/lifeServiceEdit/lifeServiceEditView'));
            }, 'lifeServiceEditMod');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/lifeServiceCategory',
          name: '生活服务分类',
          routeObj: {
            namespace: 'lifeServiceCategoryModel',
            path: 'businessAdmin/lifeServiceCategory',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/lifeServiceCategory/lifeServiceCategoryMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/lifeServiceCategory/lifeServiceCategoryView'));
            }, 'lifeServiceCategoryMod');
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/lifeServiceCategoryEdit',
          name: '生活服务分类详情',
          routeObj: {
            namespace: 'lifeServiceCategoryEdit',
            path: 'businessAdmin/lifeServiceCategoryEdit',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/lifeServiceCategoryEdit/lifeServiceCategoryEditMod'), self.routeObj);
              cb(null, require('./pages/threadAdmin/lifeServiceCategoryEdit/lifeServiceCategoryEditView'));
            }, 'lifeServiceMod');
          },
          onEnter: beforeEnter
        },
        //手工认证
        {
          path: 'businessAdmin/manualAuthentication',
          name: '人员信息合并',
          routeObj: {
            namespace: 'manualAuthenticationModel',
            path: 'businessAdmin/manualAuthentication',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/manualAuthentication/manualAuthenticationMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/manualAuthentication/manualAuthenticationView'))
            }, 'manualAuthentication')
          },
          onEnter: beforeEnter
        },
        // 业务管理 -  意见反馈管理
        {
          path: 'feedbackList',
          name: '意见处理',
          routeObj: {
            namespace: 'feedbackListModel',
            path: 'feedbackList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/feedback/feedbackList/feedbackListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/feedback/feedbackList/feedbackListView'))
            }, 'feedbackList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'businessAdmin/recommendClients',
          name: '推介情况查询',
          routeObj: {
            namespace: 'recommendClientsModel',
            path: 'businessAdmin/recommendClients',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/userAdmin/recommendClients/recommendClientsMod'), self.routeObj)
              cb(null, require('./pages/userAdmin/recommendClients/recommendClientsView'))
            }, 'recommendClients')
          },
          onEnter: beforeEnter
        },
         // 业务管理 -  消息管理
         {
          path: 'businessAdmin/messageList',
          name: '消息管理',
          routeObj: {
            namespace: 'messageListModel',
            path: 'businessAdmin/messageList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/messageList/messageListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/messageList/messageListView'))
            }, 'messageList')
          },
          onEnter: beforeEnter
        },
        // 业务管理 -  后台用户登录日志
        {
          path: 'businessAdmin/conlogList',
          name: '后台用户登录日志',
          routeObj: {
            namespace: 'conlogListModel',
            path: 'businessAdmin/conlogList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/conlogList/conlogListMod'), self.routeObj)
              cb(null, require('./pages/threadAdmin/conlogList/conlogListView'))
            }, 'conlogList')
          },
          onEnter: beforeEnter
        },
        // 业务管理 -  客户地图
        {
          path: 'businessAdmin/customerMap',
          name: '客户地图',
          routeObj: {
            namespace: 'customerMapModel',
            path: 'businessAdmin/customerMap',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/threadAdmin/customerMap/customerMapMod'), self.routeObj)
              cb(null, require('./pages/threadAdmin/customerMap/customerMapView'))
            }, 'customerMap')
          },
          onEnter: beforeEnter
        },
        // IT运维 -  修改绑定手机
        {
          path: 'itOperations/changmobileapply',
          name: '修改绑定手机',
          routeObj: {
            namespace: 'changmobileapplyModel',
            path: 'itOperations/changmobileapply',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/changmobileapply/changmobileapplyMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/changmobileapply/changmobileapplyView'))
            }, 'changmobileapply')
          },
          onEnter: beforeEnter
        },
        /*************************************************************************/
        {
          path: 'creditAdmin',
          name: '信用预警',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'creditAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'marketingAdmin',
          name: '经营红黑榜',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'marketingAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'evaluateAdmin',
          name: '企业评级评分',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'marketingAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        /*************************************************************************/

        /***********************       系统管理        ****************************/
        // 系统管理 - 首页设置
        {
          path: 'advertisementAdmin/indexSettingList',
          name: '强推设置',
          routeObj: {
            namespace: 'indexSettingListModel',
            path: 'advertisementAdmin/indexSettingList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/indexSettingList/indexSettingListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/indexSettingList/indexSettingListView'))
            }, 'indexSettingList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/gameConfigList',
          name: '游戏推广',
          routeObj: {
            namespace: 'gameConfigListModel',
            path: 'infoAdmin/gameConfigList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/gameConfig/gameConfigList/gameConfigListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/gameConfig/gameConfigList/gameConfigListView'))
            }, 'gameConfigList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'advertisementAdmin/winningInfoList',
          name: '中奖信息',
          routeObj: {
            namespace: 'winningInfoListModel',
            path: 'advertisementAdmin/winningInfoList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/gameConfig/winningInfoList/winningInfoListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/gameConfig/winningInfoList/winningInfoListView'))
            }, 'winningInfoList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'advertisementAdmin/playerInfoList',
          name: '玩家信息',
          routeObj: {
            namespace: 'playerInfoListModel',
            path: 'advertisementAdmin/playerInfoList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/gameConfig/playerInfoList/playerInfoListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/gameConfig/playerInfoList/playerInfoListView'))
            }, 'playerInfoList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/gameStatusList',
          name: '游戏类型',
          routeObj: {
            namespace: 'gameStatusListModel',
            path: 'infoAdmin/gameStatusList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/gameConfig/gameStatusList/gameStatusListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/gameConfig/gameStatusList/gameStatusListView'))
            }, 'gameStatusListModel')
          },
          onEnter: beforeEnter
        },
        {
          path: 'advertisementAdmin/gameParamsTab',
            name: '游戏设置',
            routeObj: {
              namespace: 'gameParamsTabModel',
              path: 'advertisementAdmin/gameParamsTab',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/systemAdmin/gameConfig/gameParamsTab/gameParamsTabMod'), self.routeObj);
                cb(null, require('./pages/systemAdmin/gameConfig/gameParamsTab/gameParamsTabView'));
              }, 'gameParamsTabModel');
            },
            onEnter: beforeEnter
        },
        {
          path: 'advertisementAdmin/gameStatusEdit',
            name: '编辑游戏类型',
            routeObj: {
              namespace: 'gameStatusEditModel',
              path: 'advertisementAdmin/gameStatusEdit',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/systemAdmin/gameConfig/gameStatusEdit/gameStatusEditMod'), self.routeObj);
                cb(null, require('./pages/systemAdmin/gameConfig/gameStatusEdit/gameStatusEditView'));
              }, 'gameStatusEditModel');
            },
            onEnter: beforeEnter
        },
        // //系统管理 - 首页设置-详情
        // {
        //   path: 'systemAdmin/indexSettingDetail',
        //   name: '首页设置',
        //   routeObj: {
        //     namespace: 'indexSettingDetailModel',
        //     path: 'systemAdmin/indexSettingDetail',
        //     urlArray: []
        //   },
        //   getComponent(nextState, cb) {
        //     let self = this
        //     require.ensure([], require => {
        //       registerModel(app, require('./pages/systemAdmin/indexSettingDetail/indexSettingDetailMod'), self.routeObj)
        //       cb(null, require('./pages/systemAdmin/indexSettingDetail/indexSettingDetailView'))
        //     }, 'indexSettingDetail')
        //   },
        //   onEnter: beforeEnter
        // },
        // //// 系统管理 - 首页设置列表-广告详情
        // {
        //   path: 'systemAdmin/advertisementDetail',
        //   name: '广告详情',
        //   routeObj: {
        //     namespace: 'advertisementDetailModel',
        //     path: 'systemAdmin/advertisementDetail',
        //     urlArray: []
        //   },
        //   getComponent(nextState, cb) {
        //     let self = this
        //     require.ensure([], require => {
        //       registerModel(app, require('./pages/systemAdmin/advertisementDetail/advertisementDetailMod'), self.routeObj)
        //       cb(null, require('./pages/systemAdmin/advertisementDetail/advertisementDetailView'))
        //     }, 'advertisementDetail')
        //   },
        //   onEnter: beforeEnter
        // },
        // 系统管理 - 广告设置列表
        {
          path: 'advertisingList',
          name: 'Banner管理',
          routeObj: {
            namespace: 'advertisingListModel',
            path: 'advertisingList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/advertisingList/advertisingListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/advertisingList/advertisingListView'))
            }, 'advertisingList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'systemAdmin/platformSettingList',
          name: '平台设置',
          routeObj: {
            namespace: 'platformSettingListModel',
            path: 'systemAdmin/platformSettingList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/platformSetting/platformSettingList/platformSettingListMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/platformSetting/platformSettingList/platformSettingListView'))
            }, 'platformSettingList')
          },
          onEnter: beforeEnter
        },
        // 系统管理 - 设置 - 平台设置详情
        {
          path: 'systemAdmin/platformSettingDetail',
          name: '平台设置',
          routeObj: {
            namespace: 'platformSettingDetailModel',
            path: 'systemAdmin/platformSettingDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/systemAdmin/platformSetting/platformSettingDetail/platformSettingDetailMod'), self.routeObj)
              cb(null, require('./pages/systemAdmin/platformSetting/platformSettingDetail/platformSettingDetailView'))
            }, 'platformSettingDetail')
          },
          onEnter: beforeEnter
        },
        // 系统管理 -  意见反馈管理详情
        


        
        /***********************       后台用户管理         ****************************/
          // 后台用户管理 - 用户列表
          {
              path: 'userList',
              name: '用户管理',
              routeObj: {
                  namespace: 'userListModel',
                  path: 'userList',
                  urlArray: ["/home/backStageAdmin/userInfo"]
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/backStageAdmin/authMgmt/userList/userListMod'), self.routeObj)
                      cb(null, require('./pages/backStageAdmin/authMgmt/userList/userListView'))
                  }, 'userListMod')
              },
              onEnter: beforeEnter
          },
          // 后台用户管理 - 用户列表-用户编辑
          {
            path: 'backStageAdmin/userEdit',
            name: '用户编辑',
            routeObj: {
                namespace: 'userEditModel',
                path: 'backStageAdmin/userEdit',
                urlArray: []
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/backStageAdmin/authMgmt/userEdit/userEditMod'), self.routeObj)
                    cb(null, require('./pages/backStageAdmin/authMgmt/userEdit/userEditView'))
                }, 'userEditMod')
            },
            onEnter: beforeEnter
        },
        {
            path: 'backStageAdmin/userAdd',
            name: '新增后台用户',
            routeObj: {
                namespace: 'userAddModel',
                path: 'backStageAdmin/userAdd',
                urlArray: []
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/backStageAdmin/authMgmt/userAdd/userAddMod'), self.routeObj)
                    cb(null, require('./pages/backStageAdmin/authMgmt/userAdd/userAddView'))
                }, 'userAddMod')
            },
            onEnter: beforeEnter
        },
          // 系统管理 - 后台用户管理 - 用户新增
          {
              path: 'backStageAdmin/userInfo',
              name: '用户新增',
              routeObj: {
                  namespace: 'userInfoModel',
                  path: 'backStageAdmin/userInfo',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/backStageAdmin/authMgmt/userInfo/userInfoMod'), self.routeObj)
                      cb(null, require('./pages/backStageAdmin/authMgmt/userInfo/userInfoView'))
                  }, 'userInfo')
              },
              onEnter: beforeEnter
          },

        // 后台用户管理 - 角色管理
        {
          path: 'roleAdminList',
          name: '角色权限',
          routeObj: {
            namespace: 'roleAdminListModel',
            path: 'roleAdminList',
              urlArray: ["/home/backStageAdmin/roleAdminDetail"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/roleAdminList/roleAdminListMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/roleAdminList/roleAdminListView'))
            }, 'roleAdminList')
          },
          onEnter: beforeEnter
        },
        // 后台用户管理 - 新建/编辑角色管理详情
        {
          path: 'backStageAdmin/roleAdminDetail',
          name: '角色编辑',
          routeObj: {
            namespace: 'roleAdminDetailModel',
            path: 'backStageAdmin/roleAdminDetail',
              urlArray: ["/home/backStageAdmin/roleAdminList","/home/backStageAdmin/roleAdminDetail"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/roleAdminDetail/roleAdminDetailMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/roleAdminDetail/roleAdminDetailView'))
            }, 'roleAdminDetail')
          },
          onEnter: beforeEnter
        },
        //模版-模版列表
        {
          path: 'infoAdmin/templatesList',
          name: '模版列表',
          routeObj: {
            namespace: 'templatesListModel',
            path: 'infoAdmin/templatesList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/formTemplates/templatesList/templatesListMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/formTemplates/templatesList/templatesListView'))
            }, 'templatesList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/templatesDetail',
          name: '新增模版',
          routeObj: {
            namespace: 'templatesDetailModel',
            path: 'infoAdmin/templatesDetail',
              urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/formTemplates/templatesDetail/templatesDetailMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/formTemplates/templatesDetail/templatesDetailView'))
            }, 'templatesDetail')
          },
          onEnter: beforeEnter
        },
        // 后台用户管理 - 新建/编辑角色管理详情
        // {
        //   path: 'backStageAdmin/roleAdminDetail2',
        //   name: '角色新增',
        //   routeObj: {
        //     namespace: 'roleAdminDetailModel',
        //     path: 'backStageAdmin/roleAdminDetail',
        //     urlArray: ["/home/backStageAdmin/roleAdminList","/home/backStageAdmin/roleAdminDetail2"]
        //   },
        //   getComponent(nextState, cb) {
        //     let self = this
        //     require.ensure([], require => {
        //       registerModel(app, require('./pages/backStageAdmin/roleAdmin/roleAdminDetail2/roleAdminDetailMod'), self.routeObj)
        //       cb(null, require('./pages/backStageAdmin/roleAdmin/roleAdminDetail2/roleAdminDetailView'))
        //     }, 'roleAdminDetail')
        //   },
        //   onEnter: beforeEnter
        // },
        
        // 后台用户管理 - 新建/编辑角色管理详情  backStageAdmin/roleAdmin/roleModify/roleModifyMod.js
        {
          path: 'backStageAdmin/roleModify',
          name: '角色新增',
          routeObj: {
            namespace: 'roleModifyModel',
            path: 'backStageAdmin/roleModify',
              urlArray: ["/home/backStageAdmin/roleAdminList","/home/backStageAdmin/roleModify"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/roleModify/roleModifyMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/roleModify/roleModifyView'))
            }, 'roleModify')
          },
          onEnter: beforeEnter
        },
         //模版-模版列表
         {
          path: 'infoAdmin/templatesList',
          name: '模版列表',
          routeObj: {
            namespace: 'templatesListModel',
            path: 'infoAdmin/templatesList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/formTemplates/templatesList/templatesListMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/formTemplates/templatesList/templatesListView'))
            }, 'templatesList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'infoAdmin/templatesDetail',
          name: '新增模版',
          routeObj: {
            namespace: 'templatesDetailModel',
            path: 'infoAdmin/templatesDetail',
              urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/formTemplates/templatesDetail/templatesDetailMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/formTemplates/templatesDetail/templatesDetailView'))
            }, 'templatesDetail')
          },
          onEnter: beforeEnter
        },
        {
          path: 'enterpriseAdmin/enterpriseList',
          name: '企业入驻列表',
          routeObj: {
            namespace: 'enterpriseListMod',
            path: 'enterpriseAdmin/enterpriseList',
              urlArray: ["/home/backStageAdmin/enterpriseList","/home/backStageAdmin/enterpriseDetail"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/enterprise/enterpriseListMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/enterprise/enterpriseListView'))
            }, 'enterpriseList')
          },
          onEnter: beforeEnter
        },
        {
          path: 'opinionList',
          name: '加装电梯意见收集',
          routeObj: {
            namespace: 'roleAdminDetailModel',
            path: 'opinionList',
              urlArray: ["/home/opinionList","/home/backStageAdmin/opinionList"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/opinion/opinionMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/opinion/opinionView'))
            }, 'apply')
          },
          onEnter: beforeEnter
        },
        {
          path: 'applyList',
          name: '加装电梯申请填报',
          routeObj: {
            namespace: 'applyListModel',
            path: 'applyList',
              urlArray: ["/home/backStageAdmin/applyList","/home/backStageAdmin/applyDetail"]
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/backStageAdmin/roleAdmin/apply/applyMod'), self.routeObj)
              cb(null, require('./pages/backStageAdmin/roleAdmin/apply/applyView'))
            }, 'apply')
          },
          onEnter: beforeEnter
        },
        {
          path: 'suitableForAging',
          name: '适老化申请',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'suitableForAging',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'reportAdmin',
          name: '举报审核',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'reportAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'commentAdmin',
          name: '评论审核',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'commentAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'smsAdmin',
          name: '短息管理',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'smsAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'dataReportAdmin',
          name: '数据报表',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'smsAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'financeAdmin',
          name: '金融产品发布',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'financeAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'enterpriseInfo',
          name: '业务介绍',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'enterpriseInfo',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'evaluationAdmin',
          name: '评价管理',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'evaluationAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'mallAdmin',
          name: '商城管理',
          routeObj: {
            namespace: 'fiscalFund',
            path: 'mallAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/InfoAdmin/infoDetail/infoDetailMod'), self.routeObj);
              cb(null, require('./pages/empty/emptyView'));
            }, 'fiscalFund');
          },
          onEnter: beforeEnter
        },
        {
          path: 'buildList',
          name: '房屋自建申请',
          routeObj: {
            namespace: 'buildDetailModel',
            path: 'buildList',
              urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forBuild/forBuildMod'), self.routeObj)
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forBuild/forBuildView'))
            }, 'apply')
          },
          onEnter: beforeEnter
        },
        {
          path: 'applyAdmin/buildEdit',
          name: '房屋自建申请',
          routeObj: {
            namespace: 'buildDetailModel',
            path: 'applyAdmin/buildEdit',
              urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forBuildEdit/forBuildEditMod'), self.routeObj)
              cb(null, require('./pages/mideaRealtyAdmin/buildingAdmin/baseAdmin/forBuildEdit/forBuildEditView'))
            }, 'apply')
          },
          onEnter: beforeEnter
        },
        /***********************       积分商城管理        ****************************/
        // 积分商城管理 - 积分兑换管理
        {
          path: 'integralAdmin/integralList',
          name: '积分兑换管理',
          routeObj: {
            namespace: 'integralListModel',
            path: 'integralAdmin/integralList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/integralAdmin/integralList/integralListMod'), self.routeObj)
              cb(null, require('./pages/integralAdmin/integralList/integralListView'))
            }, 'integralList')
          },
          onEnter: beforeEnter
        },
        // 积分商城管理 - 积分商品列表
        {
          path: 'integralAdmin/integralItemList',
          name: '积分商品列表',
          routeObj: {
            namespace: 'integralItemListModel',
            path: 'integralAdmin/integralItemList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/integralAdmin/integralItemList/integralItemListMod'), self.routeObj)
              cb(null, require('./pages/integralAdmin/integralItemList/integralItemListView'))
            }, 'integralItemList')
          },
          onEnter: beforeEnter
        },
        /***********************       用户管理        ****************************/
        {
          path: 'businessAdmin/userBaseInfoAdmin',
          name: '用户基本资料管理',
          routeObj: {
            namespace: 'userBaseInfoAdminModel',
            path: 'businessAdmin/userBaseInfoAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/userAdmin/userBaseInfoAdmin/userBaseInfoAdminMod'), self.routeObj)
              cb(null, require('./pages/userAdmin/userBaseInfoAdmin/userBaseInfoAdminView'))
            }, 'userBaseInfoAdmin')
          },
          onEnter: beforeEnter
        },
        {
          path: 'userAdmin/promoteTheCustomer',
          name: '推介客户',
          routeObj: {
            namespace: 'promoteTheCustomerModel',
            path: 'userAdmin/promoteTheCustomer',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/userAdmin/promoteTheCustomer/promoteTheCustomerMod'), self.routeObj)
              cb(null, require('./pages/userAdmin/promoteTheCustomer/promoteTheCustomerView'))
            }, 'promoteTheCustomer')
          },
          onEnter: beforeEnter
        },
        // pages/userAdmin/recommendClients/recommendClientsMod.js
       
        {
          path: 'userAdmin/checkZhimeiNewHouse',
          name: '查看智美新房',
          routeObj: {
            namespace: 'checkZhimeiNewHouseModel',
            path: 'userAdmin/checkZhimeiNewHouse',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/userAdmin/checkZhimeiNewHouse/checkZhimeiNewHouseMod'), self.routeObj)
              cb(null, require('./pages/userAdmin/checkZhimeiNewHouse/checkZhimeiNewHouseView'))
            }, 'checkZhimeiNewHouse')
          },
          onEnter: beforeEnter
        },
        /***********************       置业顾问管理       ****************************/
        {
          path: 'realEstateConsultantAdmin/consultantAdmin',
          name: '置业顾问管理',
          routeObj: {
            namespace: 'consultantAdminModel',
            path: 'realEstateConsultantAdmin/consultantAdmin',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/realEstateConsultantAdmin/consultantAdmin/consultantAdminMod'), self.routeObj)
              cb(null, require('./pages/realEstateConsultantAdmin/consultantAdmin/consultantAdminView'))
            }, 'consultantAdmin')
          },
          onEnter: beforeEnter
        },
        {
          path: 'realEstateConsultantAdmin/editConsultant',
          name: '新增/修改置业顾问',
          routeObj: {
            namespace: 'editConsultantModel',
            path: 'realEstateConsultantAdmin/editConsultant',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/realEstateConsultantAdmin/editConsultant/editConsultantMod'), self.routeObj)
              cb(null, require('./pages/realEstateConsultantAdmin/editConsultant/editConsultantView'))
            }, 'editConsultant')
          },
          onEnter: beforeEnter
        },
        {
          path: 'realEstateConsultantAdmin/distributionOfConsultant',
          name: '顾问分配设置',
          routeObj: {
            namespace: 'distributionOfConsultantMod',
            path: 'realEstateConsultantAdmin/distributionOfConsultant',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/realEstateConsultantAdmin/distributionOfConsultant/distributionOfConsultantMod'), self.routeObj)
              cb(null, require('./pages/realEstateConsultantAdmin/distributionOfConsultant/distributionOfConsultantView'))
            }, 'distributionOfConsultant')
          },
          onEnter: beforeEnter
        },
        {
          path: 'realEstateConsultantAdmin/editDistributionOfConsultant',
          name: '编辑规则',
          routeObj: {
            namespace: 'editDistributionOfConsultantMod',
            path: 'realEstateConsultantAdmin/editDistributionOfConsultant',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/realEstateConsultantAdmin/editDistributionOfConsultant/editDistributionOfConsultantMod'), self.routeObj)
              cb(null, require('./pages/realEstateConsultantAdmin/editDistributionOfConsultant/editDistributionOfConsultantView'))
            }, 'editDistributionOfConsultant')
          },
          onEnter: beforeEnter
        },

          /***********************       活动管理管理       ****************************/
          {
              path: 'activityAdmin/activityList',
              name: '活动管理',
              routeObj: {
                  namespace: 'activityListModel',
                  path: 'activityAdmin/activityList',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/activityAdmin/activityList/activityListMod'), self.routeObj)
                      cb(null, require('./pages/activityAdmin/activityList/activityListView'))
                  }, 'activityList')
              },
              onEnter: beforeEnter
          },
          {
              path: 'activityAdmin/activityDetail',
              name: '活动报名明细',
              routeObj: {
                  namespace: 'activityDetailModel',
                  path: 'activityAdmin/activityDetail',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/activityAdmin/activityDetail/activityDetailMod'), self.routeObj)
                      cb(null, require('./pages/activityAdmin/activityDetail/activityDetailView'))
                  }, 'activityDetail')
              },
              onEnter: beforeEnter
          },

          /***********************       全民经纪人管理       ****************************/
          {
              path: 'businessAdmin/allBrokerList',
              name: '上下级经纪人管理',
              routeObj: {
                  namespace: 'activityListModel',
                  path: 'businessAdmin/allBrokerList',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/allBrokerAdmin/allBrokerList/allBrokerListMod'), self.routeObj)
                      cb(null, require('./pages/allBrokerAdmin/allBrokerList/allBrokerListView'))
                  }, 'allBrokerList')
              },
              onEnter: beforeEnter
          },
          {
              path: 'businessAdmin/allBrokerDetail',
              name: '经纪人明细',
              routeObj: {
                  namespace: 'allBrokerDetailModel',
                  path: 'businessAdmin/allBrokerDetail',
                  urlArray: []
              },
              getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                      registerModel(app, require('./pages/allBrokerAdmin/allBrokerDetail/allBrokerDetailMod'), self.routeObj)
                      cb(null, require('./pages/allBrokerAdmin/allBrokerDetail/allBrokerDetailView'))
                  }, 'allBrokerDetail')
              },
              onEnter: beforeEnter
          },
          /***********************        账户管理       ****************************/
          {
            path: 'accountAdmin/accountList',
            name: '账户管理',
            routeObj: {
                namespace: 'accountListModel',
                path: 'accountAdmin/accountList',
                urlArray: []
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/accountAdmin/accountList/accountListMod'), self.routeObj)
                    cb(null, require('./pages/accountAdmin/accountList/accountListView'))
                }, 'accountList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'accountAdmin/accountDetail',
            name: '账户管理详情',
            routeObj: {
                namespace: 'accountDetailModel',
                path: 'accountAdmin/accountDetail',
                urlArray: ["/home/accountAdmin/accountDetail","home/accountAdmin/accountList"]
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/accountAdmin/accountDetail/accountDetailMod'), self.routeObj)
                    cb(null, require('./pages/accountAdmin/accountDetail/accountDetailView'))
                }, 'accountDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'accountAdmin/accountBalanceList',
            name: '对账',
            routeObj: {
                namespace: 'accountBalanceListModel',
                path: 'accountAdmin/accountBalanceList',
                urlArray: ["/home/accountAdmin/accountBalanceList","/home/accountAdmin/accountAdminList"]
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/accountAdmin/accountBalanceList/accountBalanceListMod'), self.routeObj)
                    cb(null, require('./pages/accountAdmin/accountBalanceList/accountBalanceListView'))
                }, 'accountBalanceList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'accountAdmin/accountBalanceDetail',
            name: '对账',
            routeObj: {
                namespace: 'accountBalanceDetailModel',
                path: 'accountAdmin/accountBalanceDetail',
                urlArray: ["/home/accountAdmin/accountBalanceDetail","/home/accountAdmin/accountAdminList"]
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/accountAdmin/accountBalanceDetail/accountBalanceDetailMod'), self.routeObj)
                    cb(null, require('./pages/accountAdmin/accountBalanceDetail/accountBalanceDetailView'))
                }, 'accountBalanceDetail')
            },
            onEnter: beforeEnter
          },
        /***********************        渠道合作管理       ****************************/
        //中介-建立渠道合作
        {
          path: 'channelAdmin/intermediaryList',
          name: '建立渠道合作',
          routeObj: {
            namespace: 'intermediaryListModel',
            path: 'channelAdmin/intermediaryList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/intermediaryList/intermediaryListMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/intermediaryList/intermediaryListView'))
            }, 'intermediaryList')
          },
          onEnter: beforeEnter
        },
        //中介-查看合作申请
        {
          path: 'channelAdmin/intermediaryApplyList',
          name: '查看合作申请',
          routeObj: {
            namespace: 'intermediaryApplyListModel',
            path: 'channelAdmin/intermediaryApplyList',
            urlArray: ['/home/channelAdmin/intermediaryDetail','/home/channelAdmin/intermediaryList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/intermediaryApplyList/intermediaryApplyListMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/intermediaryApplyList/intermediaryApplyListView'))
            }, 'intermediaryApplyList')
          },
          onEnter: beforeEnter
        },
        //中介-中介公司报备客户列表
        {
          path: 'channelAdmin/reportClientList',
          name: '中介公司报备客户列表',
          routeObj: {
            namespace: 'reportClientListModel',
            path: 'channelAdmin/reportClientList',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/reportClientList/reportClientListMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/reportClientList/reportClientListView'))
            }, 'reportClientList')
          },
          onEnter: beforeEnter
        },
        //中介-添加中介公司
        // pages/channelAdmin/intermediaryDetail/intermediaryDetailMod.js
        {
          path: 'channelAdmin/intermediaryDetail',
          name: '中介详情',
          routeObj: {
            namespace: 'intermediaryDetailModel',
            path: 'channelAdmin/intermediaryDetail',
            urlArray: ['/home/channelAdmin/intermediaryDetail','/home/channelAdmin/intermediaryList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/intermediaryDetail/intermediaryDetailMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/intermediaryDetail/intermediaryDetailView'))
            }, 'intermediaryDetail')
          },
          onEnter: beforeEnter
        },
        //中介-报备客户详情
        // pages/channelAdmin/reportedClientDetail/reportedClientDetailMod.js
        {
          path: 'channelAdmin/reportedClientDetail',
          name: '报备客户详情',
          routeObj: {
            namespace: 'reportedClientInfoModel',
            path: 'channelAdmin/reportedClientDetail',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/reportedClientDetail/reportedClientDetailMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/reportedClientDetail/reportedClientDetailView'))
            }, 'reportedClientDetail')
          },
          onEnter: beforeEnter
        },
        //中介-手工认证
        {
          path: 'channelAdmin/manualAuthentication',
          name: '报备客户详情',
          routeObj: {
            namespace: 'manualAuthenticationModel',
            path: 'channelAdmin/manualAuthentication',
            urlArray: []
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/channelAdmin/manualAuthentication/manualAuthenticationMod'), self.routeObj)
              cb(null, require('./pages/channelAdmin/manualAuthentication/manualAuthenticationView'))
            }, 'manualAuthentication')
          },
          onEnter: beforeEnter
        },
        /***********************       评价管理        ****************************/
          // 评价管理 - 置业顾问评价管理
          {
            path: 'realEstateConsultantAdmin/evaluateList',
            name: '评价管理',
            routeObj: {
              namespace: 'evaluateListModel',
              path: 'realEstateConsultantAdmin/evaluateList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/evaluateAdmin/evaluateList/evaluateListMod'), self.routeObj);
                cb(null, require('./pages/evaluateAdmin/evaluateList/evaluateListView'));
              }, 'evaluateAdmin');
            },
            onEnter: beforeEnter
          },
          // 评价管理 - 置业顾问评价明细
          {
            path: 'realEstateConsultantAdmin/evaluateDetail',
            name: '置业顾问评价明细',
            routeObj: {
              namespace: 'evaluateDetailModel',
              path: 'realEstateConsultantAdmin/evaluateDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/evaluateAdmin/evaluateDetail/evaluateDetailMod'), self.routeObj);
                cb(null, require('./pages/evaluateAdmin/evaluateDetail/evaluateDetailView'));
              }, 'evaluateDetail');
            },
            onEnter: beforeEnter
          },
             /***********************       运营数据查询        ****************************/
           //线索管理
           {
            path: 'threadAdmin/threadList',
            name: '用户列表',
            routeObj: {
              namespace: 'threadListModel',
              path: 'threadAdmin/threadList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/threadList/threadListMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/threadList/threadListView'));
              }, 'threadListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'threadAdmin/threadDetail',
            name: '用户详情',
            routeObj: {
              namespace: 'threadDetailModel',
              path: 'threadAdmin/threadDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/threadDetail/threadDetailMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/threadDetail/threadDetailView'));
              }, 'threadDetailModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'statementAdmin/recommendClientsStatistics',
            name: '推荐客户列表',
            routeObj: {
              namespace: 'recommendClientsStatisticsModel',
              path: 'statementAdmin/recommendClientsStatistics',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/recommendClientsStatistics/recommendClientsStatisticsMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/recommendClientsStatistics/recommendClientsStatisticsView'));
              }, 'recommendClientsStatisticsModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'threadAdmin/clientsList',
            name: '推荐客户详情列表',
            routeObj: {
              namespace: 'clientsListModel',
              path: 'threadAdmin/clientsList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/clientsList/clientsListMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/clientsList/clientsListView'));
              }, 'clientsListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'threadAdmin/recommendClientsList',
            name: '推荐客户统计表',
            routeObj: {
              namespace: 'recommendClientsListModel',
              path: 'threadAdmin/recommendClientsList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/recommendClientsList/recommendClientsListMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/recommendClientsList/recommendClientsListView'));
              }, 'recommendClientsListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'statementAdmin/registeredUserStatistics',
            name: '注册用户查询',
            routeObj: {
              namespace: 'registeredUserStatisticsModel',
              path: 'statementAdmin/registeredUserStatistics',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/registeredUserStatistics/registeredUserStatisticsMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/registeredUserStatistics/registeredUserStatisticsView'));
              }, 'registeredUserStatisticsModel');
            },
            onEnter: beforeEnter
          },{
            path: 'threadAdmin/registeredUserList',
            name: '注册用户列表',
            routeObj: {
              namespace: 'registeredUserListModel',
              path: 'threadAdmin/registeredUserList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/registeredUserList/registeredUserListMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/registeredUserList/registeredUserListView'));
              }, 'registeredUserListModel');
            },
            onEnter: beforeEnter
          },
          
          {
            path: 'statementAdmin/walletStatistics',
            name: '用户钱包统计',
            routeObj: {
              namespace: 'walletStatisticsModel',
              path: 'statementAdmin/walletStatistics',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/walletStatistics/walletStatisticsMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/walletStatistics/walletStatisticsView'));
              }, 'walletStatisticsModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'threadAdmin/walletList',
            name: '钱包列表',
            routeObj: {
              namespace: 'walletListModel',
              path: 'threadAdmin/walletList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/threadAdmin/walletList/walletListMod'), self.routeObj);
                cb(null, require('./pages/threadAdmin/walletList/walletListView'));
              }, 'walletListModel');
            },
            onEnter: beforeEnter
          },
        
        /***********************       报表管理        ****************************/
        {
          path: 'statementAdmin/zmzjBi',
          name: '全民营销报表',
          routeObj: {
            namespace: 'zmzjBiModel',
            path: 'statementAdmin/zmzjBi',
            urlArray: ['/home/statementAdmin/zmzjBi']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/zmzjBi/zmzjBiMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/zmzjBi/zmzjBiView'))
            }, 'zmzjBiMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/agentBi',
          name: '智分销报表',
          routeObj: {
            namespace: 'agentBiModel',
            path: 'statementAdmin/agentBi',
            urlArray: ['/home/statementAdmin/agentBi']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/agentBi/agentBiMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/agentBi/agentBiView'))
            }, 'agentBiMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/zysqBi',
          name: '线上营销报表',
          routeObj: {
            namespace: 'zysqBiModel',
            path: 'statementAdmin/zysqBi',
            urlArray: ['/home/statementAdmin/zysqBi']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/zysqBi/zysqBiMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/zysqBi/zysqBiView'))
            }, 'zysqBiMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/zxyBi',
          name: '智行销报表',
          routeObj: {
            namespace: 'zxyBiModel',
            path: 'statementAdmin/zxyBi',
            urlArray: ['/home/statementAdmin/zxyBi']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/zxyBi/zxyBiMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/zxyBi/zxyBiView'))
            }, 'zxyBiMod')
          },
          onEnter: beforeEnter
        },
        // 推介成交结佣
        {
          path: 'statementAdmin/commissionList',
          name: '推介成交结佣',
          routeObj: {
            namespace: 'commissionListModel',
            path: 'statementAdmin/commissionList',
            urlArray: ['/home/statementAdmin/commissionList']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/commissionList/commissionListMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/commissionList/commissionListView'))
            }, 'commissionListMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/followupChart',
          name: '推介人情况表',
          routeObj: {
            namespace: 'followupChartModel',
            path: 'statementAdmin/followupChart',
            urlArray: ['/home/statementAdmin/followupChart']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/followupChart/followupChartMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/followupChart/followupChartView'))
            }, 'followupChartMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/propertyConsultant',
          name: '智3-置业顾问跟进表',
          routeObj: {
            namespace: 'propertyConsultantModel',
            path: 'statementAdmin/propertyConsultant',
            urlArray: ['/home/statementAdmin/propertyConsultant']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/propertyConsultant/propertyConsultantMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/propertyConsultant/propertyConsultantView'))
            }, 'propertyConsultantMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/recommendDataCount',
          name: '智4-推介数据统计表',
          routeObj: {
            namespace: 'recommendDataCountModel',
            path: 'statementAdmin/recommendDataCount',
            urlArray: ['/home/statementAdmin/recommendDataCount']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/recommendDataCount/recommendDataCountMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/recommendDataCount/recommendDataCountView'))
            }, 'recommendDataCountMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/staffRegisterAndRecommend',
          name: '智6-员工注册及推介',
          routeObj: {
            namespace: 'staffRegisterAndRecommendModel',
            path: 'statementAdmin/staffRegisterAndRecommend',
            urlArray: ['/home/statementAdmin/staffRegisterAndRecommend']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/staffRegisterAndRecommend/staffRegisterAndRecommendMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/staffRegisterAndRecommend/staffRegisterAndRecommendView'))
            }, 'staffRegisterAndRecommendMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/ownerRegisterRecommend',
          name: '智7-业主注册及推介明细表',
          routeObj: {
            namespace: 'ownerRegisterRecommendModel',
            path: 'statementAdmin/ownerRegisterRecommend',
            urlArray: ['/home/statementAdmin/ownerRegisterRecommend']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/ownerRegisterRecommend/ownerRegisterRecommendMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/ownerRegisterRecommend/ownerRegisterRecommendView'))
            }, 'ownerRegisterRecommendMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/commissionSummary',
          name: '智8-已结佣汇总表',
          routeObj: {
            namespace: 'commissionSummaryModel',
            path: 'statementAdmin/commissionSummary',
            urlArray: ['/home/statementAdmin/commissionSummary']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/commissionSummary/commissionSummaryMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/commissionSummary/commissionSummaryView'))
            }, 'commissionSummaryMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/ninthRecommendTransactionBrokers',
          name: '智9-推介成交单位与一二级经纪人明细表',
          routeObj: {
            namespace: 'ninthRecommendTransactionBrokersModel',
            path: 'statementAdmin/ninthRecommendTransactionBrokers',
            urlArray: ['/home/statementAdmin/ninthRecommendTransactionBrokers']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/ninthRecommendTransactionBrokers/ninthRecommendTransactionBrokersMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/ninthRecommendTransactionBrokers/ninthRecommendTransactionBrokersView'))
            }, 'ninthRecommendTransactionBrokersMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/crucialDateCount',
          name: '智10-智美置家关键数据汇总统计表',
          routeObj: {
            namespace: 'staffRegisterAndRecommendModel',
            path: 'statementAdmin/crucialDateCount',
            urlArray: ['/home/statementAdmin/crucialDateCount']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/crucialDateCount/crucialDateCountMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/crucialDateCount/crucialDateCountView'))
            }, 'crucialDateCountMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/projectCrucialDateCount',
          name: '智12-项目关键数据汇总统计表',
          routeObj: {
            namespace: 'staffRegisterAndRecommendModel',
            path: 'statementAdmin/projectCrucialDateCount',
            urlArray: ['/home/statementAdmin/projectCrucialDateCount']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/projectCrucialDateCount/projectCrucialDateCountMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/projectCrucialDateCount/projectCrucialDateCountView'))
            }, 'projectCrucialDateCountMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/professionalAgentDateCount',
          name: '智13-专业经纪人数据明细表',
          routeObj: {
            namespace: 'staffRegisterAndRecommendModel',
            path: 'statementAdmin/professionalAgentDateCount',
            urlArray: ['/home/statementAdmin/professionalAgentDateCount']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/professionalAgentDateCount/professionalAgentDateCountMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/professionalAgentDateCount/professionalAgentDateCountView'))
            }, 'professionalAgentDateCountMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/reportingCustomers',
          name: '分销1-报备客户表',
          routeObj: {
            namespace: 'reportingCustomersModel',
            path: 'statementAdmin/reportingCustomers',
            urlArray: ['/home/statementAdmin/reportingCustomers']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/reportingCustomers/reportingCustomersMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/reportingCustomers/reportingCustomersView'))
            }, 'reportingCustomersMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/distributionCooperateSummary',
          name: '分销-2 分销合作数据汇总表',
          routeObj: {
            namespace: 'distributionCooperateSummaryModel',
            path: 'statementAdmin/distributionCooperateSummary',
            urlArray: ['/home/statementAdmin/distributionCooperateSummary']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/distributionCooperateSummary/distributionCooperateSummaryMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/distributionCooperateSummary/distributionCooperateSummaryView'))
            }, 'distributionCooperateSummaryMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/counselorBehaviouralAnalysis',
          name: '神1-顾问行为分析',
          routeObj: {
            namespace: 'counselorBehaviouralAnalysisModel',
            path: 'statementAdmin/counselorBehaviouralAnalysis',
            urlArray: ['/home/statementAdmin/counselorBehaviouralAnalysis']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/counselorBehaviouralAnalysis/counselorBehaviouralAnalysisMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/counselorBehaviouralAnalysis/counselorBehaviouralAnalysisView'))
            }, 'counselorBehaviouralAnalysisMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/consultantcardmaintaindetail',
          name: '神3-顾问名片详情维护表',
          routeObj: {
            namespace: 'consultantcardmaintaindetailModel',
            path: 'statementAdmin/consultantcardmaintaindetail',
            urlArray: ['/home/statementAdmin/consultantcardmaintaindetail']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/consultantcardmaintaindetail/consultantcardmaintaindetailMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/consultantcardmaintaindetail/consultantcardmaintaindetailView'))
            }, 'consultantcardmaintaindetailMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/CustomerBehaviorAnalysis',
          name: '神4-客户行为分析报表',
          routeObj: {
            namespace: 'CustomerBehaviorAnalysisModel',
            path: 'statementAdmin/CustomerBehaviorAnalysis',
            urlArray: ['/home/statementAdmin/CustomerBehaviorAnalysis']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/CustomerBehaviorAnalysis/CustomerBehaviorAnalysisMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/CustomerBehaviorAnalysis/CustomerBehaviorAnalysisView'))
            }, 'CustomerBehaviorAnalysisMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/CustomerBehaviorAnalysisCustomer',
          name: '神5-客户行为分析-客户',
          routeObj: {
            namespace: 'CustomerBehaviorAnalysisCustomerModel',
            path: 'statementAdmin/CustomerBehaviorAnalysisCustomer',
            urlArray: ['/home/statementAdmin/CustomerBehaviorAnalysisCustomer']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/CustomerBehaviorAnalysisCustomer/CustomerBehaviorAnalysisCustomerMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/CustomerBehaviorAnalysisCustomer/CustomerBehaviorAnalysisCustomerView'))
            }, 'CustomerBehaviorAnalysisCustomerMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/areaMonitoringPlatform',
          name: '神6-区域平台监控',
          routeObj: {
            namespace: 'areaMonitoringPlatformModel',
            path: 'statementAdmin/areaMonitoringPlatform',
            urlArray: ['/home/statementAdmin/areaMonitoringPlatform']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/areaMonitoringPlatform/areaMonitoringPlatformMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/areaMonitoringPlatform/areaMonitoringPlatformView'))
            }, 'areaMonitoringPlatformMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/introductionData',
          name: '神11-智美置家各区域公司员工推介数据汇总表',
          routeObj: {
            namespace: 'introductionDataModel',
            path: 'statementAdmin/introductionData',
            urlArray: ['/home/statementAdmin/introductionData']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/introductionData/introductionDataMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/introductionData/introductionDataView'))
            }, 'introductionDataMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/introductionDataZ',
          name: '智11-智美置家各区域公司员工推介数据汇总表',
          routeObj: {
            namespace: 'introductionDataZModel',
            path: 'statementAdmin/introductionDataZ',
            urlArray: ['/home/statementAdmin/introductionDataZ']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/introductionDataZ/introductionDataZMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/introductionDataZ/introductionDataZView'))
            }, 'introductionDataZMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/coreStatistics',
          name: '智14-智美置家核心数据月度公布',
          routeObj: {
            namespace: 'coreStatisticsModel',
            path: 'statementAdmin/coreStatistics',
            urlArray: ['/home/statementAdmin/coreStatistics']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/coreStatistics/coreStatisticsMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/coreStatistics/coreStatisticsView'))
            }, 'coreStatisticsMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/coreStatisticsByCity',
          name: '智15-智美置家核心数据月度公布-城市',
          routeObj: {
            namespace: 'coreStatisticsByCityModel',
            path: 'statementAdmin/coreStatisticsByCity',
            urlArray: ['/home/statementAdmin/coreStatisticsByCity']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/coreStatisticsByCity/coreStatisticsByCityMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/coreStatisticsByCity/coreStatisticsByCityView'))
            }, 'coreStatisticsByCityMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/coreStatisticsByProjcet',
          name: '智15-智美置家核心数据月度公布-城市',
          routeObj: {
            namespace: 'coreStatisticsByProjcetModel',
            path: 'statementAdmin/coreStatisticsByProjcet',
            urlArray: ['/home/statementAdmin/coreStatisticsByProjcet']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/coreStatisticsByProjcet/coreStatisticsByProjcetMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/coreStatisticsByProjcet/coreStatisticsByProjcetView'))
            }, 'coreStatisticsByProjcetMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/operationIndex',
          name: '智美置家运营指标',
          routeObj: {
            namespace: 'operationIndexModel',
            path: 'statementAdmin/operationIndex',
            urlArray: ['/home/statementAdmin/operationIndex']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/operationIndex/operationIndexMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/operationIndex/operationIndexView'))
            }, 'operationIndexMod')
          },
          onEnter: beforeEnter
        },
        {
          path: 'statementAdmin/browsingUser',
          name: '楼盘浏览用户明细表',
          routeObj: {
              namespace: 'browsingUserModel',
              path: 'statementAdmin/browsingUser',
              urlArray: ['/home/statementAdmin/browsingUser']
          },
          getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                  registerModel(app, require('./pages/statementAdmin/browsingUser/browsingUserMod'), self.routeObj)
                  cb(null, require('./pages/statementAdmin/browsingUser/browsingUserView'))
              }, 'browsingUserMod')
          },
          onEnter: beforeEnter
      },
      {
          path: 'statementAdmin/registerDetail',
          name: '智5-注册用户明细',
          routeObj: {
              namespace: 'registerDetailModel',
              path: 'statementAdmin/registerDetail',
              urlArray: ['/home/statementAdmin/registerDetail']
          },
          getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                  registerModel(app, require('./pages/statementAdmin/registerDetail/registerDetailMod'), self.routeObj)
                  cb(null, require('./pages/statementAdmin/registerDetail/registerDetailView'))
              }, 'registerDetail')
          },
          onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/employeeSubscribeDetail',
        name: '智17-智美置家各区域公司员工自购明细',
        routeObj: {
            namespace: 'employeeSubscribeDetailModel',
            path: 'statementAdmin/employeeSubscribeDetail',
            urlArray: ['/home/statementAdmin/employeeSubscribeDetail']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/employeeSubscribeDetail/employeeSubscribeDetailMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/employeeSubscribeDetail/employeeSubscribeDetailView'))
            }, 'employeeSubscribeDetail')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/liveCount',
        name: '智18-直播统计',
        routeObj: {
            namespace: 'liveCountModel',
            path: 'statementAdmin/liveCount',
            urlArray: ['/home/statementAdmin/liveCount']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/liveCount/liveCountMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/liveCount/liveCountView'))
            }, 'liveCount')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/liveDetail',
        name: '智18-直播明细',
        routeObj: {
            namespace: 'liveDetailModel',
            path: 'statementAdmin/liveDetail',
            urlArray: ['/home/statementAdmin/liveDetail']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/liveDetail/liveDetailMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/liveDetail/liveDetailView'))
            }, 'liveDetail')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/talkWayStatement',
        name: '行拓1-拓客方式统计报表',
        routeObj: {
            namespace: 'talkWayStatementModel',
            path: 'statementAdmin/talkWayStatement',
            urlArray: ['/home/statementAdmin/talkWayStatement']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/talkWayStatement/talkWayStatementMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/talkWayStatement/talkWayStatementView'))
            }, 'talkWayStatement')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/talkDailyReport',
        name: '行拓2-日报表',
        routeObj: {
            namespace: 'talkDailyReportModel',
            path: 'statementAdmin/talkDailyReport',
            urlArray: ['/home/statementAdmin/talkDailyReport']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/talkDailyReport/talkDailyReportMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/talkDailyReport/talkDailyReportView'))
            }, 'talkDailyReport')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/pendingCommission',
        name: '智20-智美置家待结佣明细',
        routeObj: {
            namespace: 'pendingCommissionModel',
            path: 'statementAdmin/pendingCommission',
            urlArray: ['/home/statementAdmin/pendingCommission']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/pendingCommission/pendingCommissionMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/pendingCommission/pendingCommissionView'))
            }, 'pendingCommission')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/alreadyCommission',
        name: '智21-全民营销已结佣明细查询表',
        routeObj: {
            namespace: 'alreadyCommissionModel',
            path: 'statementAdmin/alreadyCommission',
            urlArray: ['/home/statementAdmin/alreadyCommission']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/alreadyCommission/alreadyCommissionMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/alreadyCommission/alreadyCommissionView'))
            }, 'alreadyCommission')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/talkBee',
        name: '行拓3-小蜜蜂考勤统计表',
        routeObj: {
            namespace: 'talkBeeModel',
            path: 'statementAdmin/talkBee',
            urlArray: ['/home/statementAdmin/talkBee']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/talkBee/talkBeeMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/talkBee/talkBeeView'))
            }, 'talkBee')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/talkAttendance',
        name: '行拓4-考勤明细表',
        routeObj: {
            namespace: 'talkAttendanceModel',
            path: 'statementAdmin/talkAttendance',
            urlArray: ['/home/statementAdmin/talkAttendance']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/talkAttendance/talkAttendanceMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/talkAttendance/talkAttendanceView'))
            }, 'talkAttendance')
        },
        onEnter: beforeEnter
      },
      {
        path: 'statementAdmin/talkIndicators',
        name: '行拓5-指标完成情况报表',
        routeObj: {
            namespace: 'talkIndicatorsModel',
            path: 'statementAdmin/talkIndicators',
            urlArray: ['/home/statementAdmin/talkIndicators']
        },
        getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
                registerModel(app, require('./pages/statementAdmin/talkIndicators/talkIndicatorsMod'), self.routeObj)
                cb(null, require('./pages/statementAdmin/talkIndicators/talkIndicatorsView'))
            }, 'talkIndicators')
        },
        onEnter: beforeEnter
      },  
        /***********************       佣金管理        ****************************/
  
        {
            path: 'commissions/commissionsList',
            name: '佣金汇总申请表',
            routeObj: {
              namespace: 'commissionsListModel',
              path: 'commissions/commissionsList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsList/commissionsListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionsList/commissionsListView'));
              }, 'commissionsListModel');
            },
            onEnter: beforeEnter
          },
            //佣金汇总申请表录入
            {
              path: 'commissions/commissionsEdit',
              name: '佣金汇总申请表详情',
              routeObj: {
                namespace: 'commissionsEditModel',
                path: 'commissions/commissionsEdit',
                urlArray: []
              },
              getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                  registerModel(app, require('./pages/commissionsAdmin/commissionsEdit/commissionsEditMod'), self.routeObj)
                  cb(null, require('./pages/commissionsAdmin/commissionsEdit/commissionsEditView'))
                }, 'commissionsEditModel')
              },
              onEnter: beforeEnter
            },
             //佣金汇总申请表原因查询
             {
                path: 'commissions/commissionsListReason',
                name: '原因查询',
                routeObj: {
                  namespace: 'commissionsListReasonModel',
                  path: 'commissions/commissionsListReason',
                  urlArray: []
                },
                getComponent(nextState, cb) {
                  let self = this
                  require.ensure([], require => {
                    registerModel(app, require('./pages/commissionsAdmin/commissionsListReason/commissionsListReasonMod'), self.routeObj)
                    cb(null, require('./pages/commissionsAdmin/commissionsListReason/commissionsListReasonView'))
                  }, 'commissionsListReasonModel')
                },
                onEnter: beforeEnter
              },
           {
            path: 'commissions/levelCommissionsRules',
            name: '二级佣金规则',
            routeObj: {
              namespace: 'levelCommissionsRulesModel',
              path: 'commissions/levelCommissionsRules',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/levelCommissionsRules/levelCommissionsRulesMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/levelCommissionsRules/levelCommissionsRulesView'));
              }, 'levelCommissionsRulesModel');
            },
            onEnter: beforeEnter
          },
           {
            path: 'commissions/commissionsRules',
            name: '佣金规则',
            routeObj: {
              namespace: 'commissionsRulesModel',
              path: 'commissions/commissionsRules',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsRules/commissionsRulesMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionsRules/commissionsRulesView'));
              }, 'commissionsRulesModel');
            },
            onEnter: beforeEnter
          },
          //佣金规则录入
          {
            path: 'commissions/commissionsRulesEdit',
            name: '佣金规则录入',
            routeObj: {
              namespace: 'commissionsRulesEditModel',
              path: 'commissions/commissionsRulesEdit',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsRulesEdit/commissionsRulesEditMod'), self.routeObj)
                cb(null, require('./pages/commissionsAdmin/commissionsRulesEdit/commissionsRulesEditView'))
              }, 'commissionsRulesEditModel')
            },
            onEnter: beforeEnter
          },
          //二级佣金规则录入
          {
            path: 'commissions/levelCommissionsRulesEdit',
            name: '二级佣金规则录入',
            routeObj: {
              namespace: 'levelCommissionsRulesEditModel',
              path: 'commissions/levelCommissionsRulesEdit',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/levelCommissionsRulesEdit/levelCommissionsRulesEditMod'), self.routeObj)
                cb(null, require('./pages/commissionsAdmin/levelCommissionsRulesEdit/levelCommissionsRulesEditView'))
              }, 'levelCommissionsRulesEditModel')
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/subAccountsList',
            name: '分账明细',
            routeObj: {
              namespace: 'subAccountsListModel',
              path: 'commissions/subAccountsList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/subAccountsList/subAccountsListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/subAccountsList/subAccountsListView'));
              }, 'subAccountsListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/withdrawList',
            name: '提现记录',
            routeObj: {
              namespace: 'withdrawListModel',
              path: 'commissions/withdrawList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/withdrawList/withdrawListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/withdrawList/withdrawListView'));
              }, 'withdrawListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/commissionPaymentList',
            name: '佣金付款明细',
            routeObj: {
              namespace: 'commissionPaymentListModel',
              path: 'commissions/commissionPaymentList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionPaymentList/commissionPaymentListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionPaymentList/commissionPaymentListView'));
              }, 'commissionPaymentListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/cxAllotCommissionList',
            name: '淳信分佣明细',
            routeObj: {
              namespace: 'cxAllotCommissionListModel',
              path: 'commissions/cxAllotCommissionList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/cxAllotCommissionList/cxAllotCommissionListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/cxAllotCommissionList/cxAllotCommissionListView'));
              }, 'cxAllotCommissionListModel');
            },
            onEnter: beforeEnter
          },
          //分销佣金规则方案
          {
            path: 'commissions/commissionsDistRules',
            name: '分销佣金规则方案',
            routeObj: {
              namespace: 'commissionsDistRulesModel',
              path: 'commissions/commissionsDistRules',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsDistRules/commissionsDistRulesMod'), self.routeObj)
                cb(null, require('./pages/commissionsAdmin/commissionsDistRules/commissionsDistRulesView'))
              }, 'commissionsDistRulesModel')
            },
            onEnter: beforeEnter
          },
          //佣金管理-佣金规则详情
          {
            path: 'commissions/commissionsDistRulesDetail',
            name: '分销佣金规则方案详情',
            routeObj: {
              namespace: 'commissionsDistRulesDetailModel',
              path: 'commissions/commissionsDistRulesDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsDistRulesDetail/commissionsDistRulesDetailMod'), self.routeObj)
                cb(null, require('./pages/commissionsAdmin/commissionsDistRulesDetail/commissionsDistRulesDetailView'))
              }, 'commissionsDistRulesDetailModel')
            },
            onEnter: beforeEnter
          },
            //佣金管理-分销佣金规则方案详情新增版本
            {
            path: 'commissions/commissionsDistRulesVersion',
            name: '分销佣金规则方案详情',
            routeObj: {
              namespace: 'commissionsDistRulesVersionModel',
              path: 'commissions/commissionsDistRulesVersion',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsDistRulesVersion/commissionsDistRulesVersionMod'), self.routeObj)
                cb(null, require('./pages/commissionsAdmin/commissionsDistRulesVersion/commissionsDistRulesVersionView'))
              }, 'commissionsDistRulesVersionModel')
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/commissionsDistList',
            name: '分销佣金申请单',
            routeObj: {
              namespace: 'commissionsDistListModel',
              path: 'commissions/commissionsDistList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsDistList/commissionsDistListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionsDistList/commissionsDistListView'));
              }, 'commissionsDistListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/commissionInvoiceList',
            name: '佣金发票核销明细表',
            routeObj: {
              namespace: 'commissionInvoiceListModel',
              path: 'commissions/commissionInvoiceList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionInvoiceList/commissionInvoiceListMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionInvoiceList/commissionInvoiceListView'));
              }, 'commissionInvoiceListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'commissions/commissionsDistListDetail',
            name: '分销佣金申请单详情',
            routeObj: {
              namespace: 'commissionsDistListDetailModel',
              path: 'commissions/commissionsDistListDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/commissionsAdmin/commissionsDistListDetail/commissionsDistListDetailMod'), self.routeObj);
                cb(null, require('./pages/commissionsAdmin/commissionsDistListDetail/commissionsDistListDetailView'));
              }, 'commissionsDistListDetailModel');
            },
            onEnter: beforeEnter
          },
           /***********************       广告管理        ****************************/
           //开机广告管理
          {
            path: 'advertisementAdmin/popScreenAdList',
            name: '开机广告管理',
            routeObj: {
              namespace: 'popScreenAdListModel',
              path: 'advertisementAdmin/popScreenAdList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/popScreenAdList/popScreenAdListMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/popScreenAdList/popScreenAdListView'))
              }, 'popScreenAdList')
            },
            onEnter: beforeEnter
          },
          //开机广告管理详情
          {
            path: 'advertisementAdmin/popScreenAdDetail',
            name: '广告弹窗详情',
            routeObj: {
              namespace: 'popScreenAdDetailModel',
              path: 'advertisementAdmin/popScreenAdDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/popScreenAdDetail/popScreenAdDetailMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/popScreenAdDetail/popScreenAdDetailView'))
              }, 'popScreenAdDetail')
            },
            onEnter: beforeEnter
          },
           //广告管理-广告弹窗详情
          {
            path: 'advertisementAdmin/advertisingWindowList',
            name: '弹窗管理',
            routeObj: {
              namespace: 'advertisingWindowListModel',
              path: 'advertisementAdmin/advertisingWindowList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/advertisingWindowList/advertisingWindowListMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/advertisingWindowList/advertisingWindowListView'))
              }, 'advertisingWindowList')
            },
            onEnter: beforeEnter
          },
          //广告管理-广告弹窗详情
          {
            path: 'advertisementAdmin/advertisingWindowDetail',
            name: '广告弹窗详情',
            routeObj: {
              namespace: 'advertisingWindowDetailModel',
              path: 'advertisementAdmin/advertisingWindowDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/advertisingWindowDetail/advertisingWindowDetailMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/advertisingWindowDetail/advertisingWindowDetailView'))
              }, 'advertisingWindowDetail')
            },
            onEnter: beforeEnter
          },
          //广告管理-横幅列表
          {
            path: 'advertisementAdmin/homeBannerList',
            name: '横幅列表',
            routeObj: {
              namespace: 'homeBannerListModel',
              path: 'advertisementAdmin/homeBannerList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/homeBannerList/homeBannerListMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/homeBannerList/homeBannerListView'))
              }, 'homeBannerList')
            },
            onEnter: beforeEnter
          },
          //广告管理-广告弹窗详情
          {
            path: 'advertisementAdmin/homeBannerDetail',
            name: '横幅详情',
            routeObj: {
              namespace: 'homeBannerDetailModel',
              path: 'advertisementAdmin/homeBannerDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/homeBannerDetail/homeBannerDetailMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/homeBannerDetail/homeBannerDetailView'))
              }, 'homeBannerDetail')
            },
            onEnter: beforeEnter
          },
         
          {
            path: 'advertisementAdmin/advertisingList2',
            name: 'Banner管理',
            routeObj: {
              namespace: 'advertisingListModel',
              path: 'advertisementAdmin/advertisingList2',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/systemAdmin/advertisingList2/advertisingListMod'), self.routeObj)
                cb(null, require('./pages/systemAdmin/advertisingList2/advertisingListView'))
              }, 'advertisingList2')
            },
            onEnter: beforeEnter
          },
          {
            path: 'advertisementAdmin/advertisingList',
            name: '轮播图管理',
            routeObj: {
              namespace: 'advertisingListModel',
              path: 'advertisementAdmin/advertisingList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/advertisingList/advertisingListMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/advertisingList/advertisingListView'))
              }, 'advertisingList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'advertisementAdmin/advertisingDetail',
            name: 'Banner管理',
            routeObj: {
              namespace: 'advertisingDetailModel',
              path: 'advertisementAdmin/advertisingDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/advertisingDetail/advertisingDetailMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/advertisingDetail/advertisingDetailView'))
              }, 'advertisingDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'advertisementAdmin/advertisingBuoysList',
            name: '浮标管理',
            routeObj: {
              namespace: 'buoyListModel',
              path: 'advertisementAdmin/advertisingBuoysList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/buoyManagement/buoyListMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/buoyManagement/buoyListView'))
              }, 'advertisingBuoysList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'advertisementAdmin/buoyDetail',
            name: '浮标详情',
            routeObj: {
              namespace: 'buoyDetailModel',
              path: 'advertisementAdmin/buoyDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/advertisementAdmin/buoyManagementDetail/buoyManagementDetailMod'), self.routeObj)
                cb(null, require('./pages/advertisementAdmin/buoyManagementDetail/buoyManagementDetailView'))
              }, 'buoyDetail')
            },
            onEnter: beforeEnter
          },
           //二维码渠道管理
           {
            path: 'codeChannelAdmin/codeChannelList',
            name: '传播渠道类别',
            routeObj: {
              namespace: 'codeChannelListModel',
              path: 'codeChannelAdmin/codeChannelList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelList/codeChannelMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelList/codeChannelListView'))
              }, 'codeChannelList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'codeChannelAdmin/codeChannelEdit',
            name: '新建传播渠道',
            routeObj: {
              namespace: 'codeChannelEditModel',
              path: 'codeChannelAdmin/codeChannelEdit',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelEdit/codeChannelEditMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelEdit/codeChannelEditView'))
              }, 'codeChannelEditView')
            },
            onEnter: beforeEnter
          },
          {
            path: 'codeChannelAdmin/codeChannelClique',
            name: '传播渠道统计',
            routeObj: {
              namespace: 'codeChannelCliqueModel',
              path: 'codeChannelAdmin/codeChannelClique',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelClique/codeChannelCliqueMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelClique/codeChannelCliqueView'))
              }, 'codeChannelClique')
            },
            onEnter: beforeEnter
          },
          //codeChannelArea
          {
            path: 'codeChannelAdmin/codeChannelArea',
            name: '区域传播渠道统计',
            routeObj: {
              namespace: 'codeChannelAreaModel',
              path: 'codeChannelAdmin/codeChannelArea',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelArea/codeChannelAreaMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelArea/codeChannelAreaView'))
              }, 'codeChannelArea')
            },
            onEnter: beforeEnter
          },
          //codeChannelProject
          {
            path: 'codeChannelAdmin/codeChannelProject',
            name: '项目统计',
            routeObj: {
              namespace: 'codeChannelProjectModel',
              path: 'codeChannelAdmin/codeChannelProject',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelProject/codeChannelProjectMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelProject/codeChannelProjectView'))
              }, 'codeChannelProject')
            },
            onEnter: beforeEnter
          },
          //codeChannelCanals
          {
            path: 'codeChannelAdmin/codeChannelCanals',
            name: '渠道统计',
            routeObj: {
              namespace: 'codeChannelCanalsModel',
              path: 'codeChannelAdmin/codeChannelCanals',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/codeChannelAdmin/codeChannelCanals/codeChannelCanalsMod'), self.routeObj)
                cb(null, require('./pages/codeChannelAdmin/codeChannelCanals/codeChannelCanalsView'))
              }, 'codeChannelCanals')
            },
            onEnter: beforeEnter
          },
            /***********************       积分商城        ************************** */
          {
            path: 'integralMall/integralMember',
            name: '积分会员',
            routeObj: {
              namespace: 'integralMemberModel',
              path: 'integralMall/integralMember',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralMember/integralMemberMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralMember/integralMemberView'));
              }, 'integralMemberModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralMemberDetail',
            name: '积分会员详情',
            routeObj: {
              namespace: 'integralMemberDetailModel',
              path: 'integralMall/integralMemberDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralMemberDetail/integralMemberDetailMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralMemberDetail/integralMemberDetailView'));
              }, 'integralMemberDetailModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralRule',
            name: '积分规则',
            routeObj: {
              namespace: 'integralRuleModel',
              path: 'integralMall/integralRule',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralRule/integralRuleMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralRule/integralRuleView'));
              }, 'integralRuleModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralGrade',
            name: '积分等级',
            routeObj: {
              namespace: 'integralGradeModel',
              path: 'integralMall/integralGrade',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralGrade/integralGradeMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralGrade/integralGradeView'));
              }, 'integralGradeModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralManagement',
            name: '商品管理',
            routeObj: {
              namespace: 'integralManagementModel',
              path: 'integralMall/integralManagement',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralManagement/integralManagementMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralManagement/integralManagementView'));
              }, 'integralManagementModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall_cloud/integralManagement_cloud',
            name: '商品管理-积分',
            routeObj: {
              namespace: 'integralManagement_cloudModel',
              path: 'integralMall_cloud/integralManagement_cloud',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall_cloud/integralManagement_cloud/integralManagement_cloudMod'), self.routeObj);
                cb(null, require('./pages/integralMall_cloud/integralManagement_cloud/integralManagement_cloudView'));
              }, 'integralManagement_cloudModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall_cloud/integralManagementDetail_cloud',
            name: '商品详情-积分',
            routeObj: {
              namespace: 'integralManagementDetail_cloudModel',
              path: 'integralMall_cloud/integralManagementDetail_cloud',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall_cloud/integralManagementDetail_cloud/integralManagementDetail_cloudMod'), self.routeObj);
                cb(null, require('./pages/integralMall_cloud/integralManagementDetail_cloud/integralManagementDetail_cloudView'));
              }, 'integralManagementDetail_cloudModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralManagementDetail',
            name: '商品详情',
            routeObj: {
              namespace: 'integralManagementDetailModel',
              path: 'integralMall/integralManagementDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralManagementDetail/integralManagementDetailMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralManagementDetail/integralManagementDetailView'));
              }, 'integralManagementDetailModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralExchange',
            name: '商品兑换管理',
            routeObj: {
              namespace: 'integralExchangeModel',
              path: 'integralMall/integralExchange',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralExchange/integralExchangeMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralExchange/integralExchangeView'));
              }, 'integralExchangeModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall_cloud/integralExchange_cloud',
            name: '商品兑换管理-积分',
            routeObj: {
              namespace: 'integralExchange_cloudModel',
              path: 'integralMall_cloud/integralExchange_cloud',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall_cloud/integralExchange_cloud/integralExchange_cloudMod'), self.routeObj);
                cb(null, require('./pages/integralMall_cloud/integralExchange_cloud/integralExchange_cloudView'));
              }, 'integralExchange_cloudModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralExchangeNotice',
            name: '兑换热线通知',
            routeObj: {
              namespace: 'integralExchangeNoticeModel',
              path: 'integralMall/integralExchangeNotice',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralExchangeNotice/integralExchangeNoticeMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralExchangeNotice/integralExchangeNoticeView'));
              }, 'integralExchangeNoticeModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/integralDetail',
            name: '积分明细',
            routeObj: {
              namespace: 'integralDetailModel',
              path: 'integralMall/integralDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/integralDetail/integralDetailMod'), self.routeObj);
                cb(null, require('./pages/integralMall/integralDetail/integralDetailView'));
              }, 'integralDetailModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/merchandiseList',
            name: '商品分类管理',
            routeObj: {
              namespace: 'merchandiseListModel',
              path: 'integralMall/merchandiseList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/merchandiseList/merchandiseListMod'), self.routeObj);
                cb(null, require('./pages/integralMall/merchandiseList/merchandiseListView'));
              }, 'merchandiseListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/projectIntegralDetail',
            name: '项目积分明细',
            routeObj: {
                namespace: 'projectIntegralDetailModel',
                path: 'integralMall/projectIntegralDetail',
                urlArray: ['/home/integralMall/projectIntegralDetail']
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/integralMall/projectIntegralDetail/projectIntegralDetailMod'), self.routeObj)
                    cb(null, require('./pages/integralMall/projectIntegralDetail/projectIntegralDetailView'))
                }, 'projectIntegralDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/merchantList',
            name: '商家管理',
            routeObj: {
              namespace: 'merchantListModel',
              path: 'integralMall/merchantList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/integralMall/merchantList/merchantListMod'), self.routeObj);
                cb(null, require('./pages/integralMall/merchantList/merchantListView'));
              }, 'merchantListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/projectSettle',
            name: '项目结算单',
            routeObj: {
                namespace: 'projectSettleModel',
                path: 'integralMall/projectSettle',
                urlArray: ['/home/integralMall/projectSettle']
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/integralMall/projectSettle/projectSettleMod'), self.routeObj)
                    cb(null, require('./pages/integralMall/projectSettle/projectSettleView'))
                }, 'projectSettle')
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/projectMemberSettle',
            name: '项目会员积分明细',
            routeObj: {
                namespace: 'projectMemberSettleModel',
                path: 'integralMall/projectMemberSettle',
                urlArray: ['/home/integralMall/projectMemberSettle']
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/integralMall/projectMemberSettle/projectMemberSettleMod'), self.routeObj)
                    cb(null, require('./pages/integralMall/projectMemberSettle/projectMemberSettleView'))
                }, 'projectMemberSettle')
            },
            onEnter: beforeEnter
          },
          {
            path: 'integralMall/memberIntegralDetail',
            name: '会员积分明细',
            routeObj: {
                namespace: 'memberIntegralDetailModel',
                path: 'integralMall/memberIntegralDetail',
                urlArray: ['/home/integralMall/memberIntegralDetail']
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/integralMall/memberIntegralDetail/memberIntegralDetailMod'), self.routeObj)
                    cb(null, require('./pages/integralMall/memberIntegralDetail/memberIntegralDetailView'))
                }, 'memberIntegralDetail')
            },
            onEnter: beforeEnter
          },
          /***********************       智美行销        ************************** */
          {
            path: 'expandManage/taskList',
            name: '任务管理',
            routeObj: {
              namespace: 'taskListModel',
              path: 'expandManage/taskList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/taskList/taskListMod'), self.routeObj);
                cb(null, require('./pages/expandManage/taskList/taskListView'));
              }, 'taskListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/taskAdd',
            name: '新增任务',
            routeObj: {
              namespace: 'taskAddModel',
              path: 'expandManage/taskAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/taskAdd/taskAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/taskAdd/taskAddView'));
              }, 'taskAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/taskInfo',
            name: '任务详情',
            routeObj: {
              namespace: 'taskInfoModel',
              path: 'expandManage/taskInfo',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/taskInfo/taskInfoMod'), self.routeObj);
                cb(null, require('./pages/expandManage/taskInfo/taskInfoView'));
              }, 'taskInfoModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/customerList',
            name: '客户管理',
            routeObj: {
              namespace: 'customerListModel',
              path: 'expandManage/customerList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/customerList/customerListMod'), self.routeObj);
                cb(null, require('./pages/expandManage/customerList/customerListView'));
              }, 'customerListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/customerInfo',
            name: '客户详情',
            routeObj: {
              namespace: 'customerInfoModel',
              path: 'expandManage/customerInfo',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/customerInfo/customerInfoMod'), self.routeObj);
                cb(null, require('./pages/expandManage/customerInfo/customerInfoView'));
              }, 'customerInfoModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/talkMap',
            name: '拓客地图',
            routeObj: {
              namespace: 'talkMapModel',
              path: 'expandManage/talkMap',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/talkMap/talkMapMob'), self.routeObj);
                cb(null, require('./pages/expandManage/talkMap/talkMapView'));
              }, 'talkMapModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/talkCollege',
            name: '拓客学堂',
            routeObj: {
              namespace: 'talkCollegeModel',
              path: 'expandManage/talkCollege',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/talkCollege/talkCollegeMod'), self.routeObj);
                cb(null, require('./pages/expandManage/talkCollege/talkCollegeView'));
              }, 'talkCollegeModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/talkCollegeAdd',
            name: '新增资料',
            routeObj: {
              namespace: 'talkCollegeAddModel',
              path: 'expandManage/talkCollegeAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/talkCollegeAdd/talkCollegeAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/talkCollegeAdd/talkCollegeAddView'));
              }, 'talkCollegeAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/newsBulletin',
            name: '消息公告',
            routeObj: {
              namespace: 'newsBulletinModel',
              path: 'expandManage/newsBulletin',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/newsBulletin/newsBulletinMod'), self.routeObj);
                cb(null, require('./pages/expandManage/newsBulletin/newsBulletinView'));
              }, 'newsBulletinModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/newsBulletinAdd',
            name: '新增消息公告',
            routeObj: {
              namespace: 'newsBulletinAddModel',
              path: 'expandManage/newsBulletinAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/newsBulletinAdd/newsBulletinAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/newsBulletinAdd/newsBulletinAddView'));
              }, 'newsBulletinAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/configurationCenter',
            name: '配置中心',
            routeObj: {
              namespace: 'configurationCenterModel',
              path: 'expandManage/configurationCenter',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/configurationCenter/configurationCenterMod'), self.routeObj);
                cb(null, require('./pages/expandManage/configurationCenter/configurationCenterView'));
              }, 'configurationCenterModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/otherConfigAdd',
            name: '参数配置详情',
            routeObj: {
              namespace: 'otherConfigAddModel',
              path: 'expandManage/otherConfigAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/otherConfigAdd/otherConfigAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/otherConfigAdd/otherConfigAddView'));
              }, 'otherConfigAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/teamMannage',
            name: '团队管理',
            routeObj: {
              namespace: 'teamMannageModel',
              path: 'expandManage/teamMannage',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/teamMannage/teamMannageMod'), self.routeObj);
                cb(null, require('./pages/expandManage/teamMannage/teamMannageView'));
              }, 'teamMannageModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/teamMannageAdd',
            name: '团队详情',
            routeObj: {
              namespace: 'teamMannageAddModel',
              path: 'expandManage/teamMannageAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/teamMannageAdd/teamMannageAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/teamMannageAdd/teamMannageAddView'));
              }, 'teamMannageAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/userList',
            name: '用户管理',
            routeObj: {
              namespace: 'userListModel',
              path: 'expandManage/userList',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/userList/userListMod'), self.routeObj);
                cb(null, require('./pages/expandManage/userList/userListView'));
              }, 'userListModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/userAdd',
            name: '新增用户',
            routeObj: {
              namespace: 'userAddModel',
              path: 'expandManage/userAdd',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/userAdd/userAddMod'), self.routeObj);
                cb(null, require('./pages/expandManage/userAdd/userAddView'));
              }, 'userAddModel');
            },
            onEnter: beforeEnter
          },
          {
            path: 'expandManage/userDetail',
            name: '用户详情',
            routeObj: {
              namespace: 'userDetailModel',
              path: 'expandManage/userDetail',
              urlArray: []
            },
            getComponent(nextState, cb) {
              let self = this;
              require.ensure([], require => {
                registerModel(app, require('./pages/expandManage/userDetail/userDetailMod'), self.routeObj);
                cb(null, require('./pages/expandManage/userDetail/userDetailView'));
              }, 'userDetailModel');
            },
            onEnter: beforeEnter
          },

          /***********************       前策管理        ************************** */
          {
            path: 'predictManage/basicConfigIndex',
            name: '基础配置',
            routeObj: {
              namespace: 'basicConfigIndexModel',
              path: 'predictManage/basicConfigIndex',
                urlArray: ["/home/predictManage/areaList"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/basicConfigIndex/basicConfigIndexMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/basicConfigIndex/basicConfigIndexView'))
              }, 'basicConfigIndex')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/collectiveList',
            name: '集团表单配置',
            routeObj: {
              namespace: 'collectiveListModel',
              path: 'predictManage/collectiveList',
                urlArray: ["/home/predictManage/collectiveListDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/collectiveList/collectiveListMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/collectiveList/collectiveListView'))
              }, 'collectiveList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/collectiveListDetail',
            name: '集团表单配置详情',
            routeObj: {
              namespace: 'collectiveListDetailModel',
              path: 'predictManage/collectiveListDetail',
                urlArray: ["/home/predictManage/collectiveListDetailDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/collectiveListDetail/collectiveListDetailMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/collectiveListDetail/collectiveListDetailView'))
              }, 'collectiveListDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/areaList',
            name: '区域表单配置',
            routeObj: {
              namespace: 'areaListModel',
              path: 'predictManage/areaList',
                urlArray: ["/home/predictManage/areaListDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/areaList/areaListMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/areaList/areaListView'))
              }, 'areaList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/areaListDetail',
            name: '区域表单配置详情',
            routeObj: {
              namespace: 'areaListDetailModel',
              path: 'predictManage/areaListDetail',
                urlArray: ["/home/predictManage/areaListDetailDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/areaListDetail/areaListDetailMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/areaListDetail/areaListDetailView'))
              }, 'areaListDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/projectList',
            name: '项目表单配置',
            routeObj: {
              namespace: 'projectListModel',
              path: 'predictManage/projectList',
                urlArray: ["/home/predictManage/projectListDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/projectList/projectListMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/projectList/projectListView'))
              }, 'projectList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/projectListDetail',
            name: '项目表单配置详情',
            routeObj: {
              namespace: 'projectListDetailModel',
              path: 'predictManage/projectListDetail',
                urlArray: ["/home/predictManage/projectListDetailDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/projectListDetail/projectListDetailMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/projectListDetail/projectListDetailView'))
              }, 'projectListDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/predictList',
            name: '前策产品类型配置',
            routeObj: {
              namespace: 'predictListModel',
              path: 'predictManage/predictList',
                urlArray: ["/home/predictManage/predictListDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/predictList/predictListMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/predictList/predictListView'))
              }, 'predictList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/countySet',
            name: '城市设置',
            routeObj: {
              namespace: 'countySetModel',
              path: 'predictManage/countySet',
                urlArray: ["/home/predictManage/countySetDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/basicConfig/countySet/countySetMod'), self.routeObj)
                cb(null, require('./pages/predictManage/basicConfig/countySet/countySetView'))
              }, 'countySet')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/competingGoodsList',
            name: '竞品管理',
            routeObj: {
              namespace: 'competingGoodsListModel',
              path: 'predictManage/competingGoodsList',
                urlArray: ["/home/predictManage/competingGoodsListDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/competingGoodsManage/competingGoodsList/competingGoodsListMod'), self.routeObj)
                cb(null, require('./pages/predictManage/competingGoodsManage/competingGoodsList/competingGoodsListView'))
              }, 'competingGoodsList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/competingGoodsDetail',
            name: '竞品管理详情',
            routeObj: {
              namespace: 'competingGoodsDetailModel',
              path: 'predictManage/competingGoodsDetail',
                urlArray: ["/home/predictManage/competingGoodsDetailDetail"]
            },
            getComponent(nextState, cb) {
              let self = this
              require.ensure([], require => {
                registerModel(app, require('./pages/predictManage/competingGoodsManage/competingGoodsDetail/competingGoodsDetailMod'), self.routeObj)
                cb(null, require('./pages/predictManage/competingGoodsManage/competingGoodsDetail/competingGoodsDetailView'))
              }, 'competingGoodsDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/policyList',
            name: '前策政策盘点',
            routeObj: {
              namespace: 'policyListModel',
              path: 'predictManage/policyList',
                urlArray: ["/home/predictManage/policyListDetail"]
            },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                  registerModel(app, require('./pages/predictManage/policyManage/policyList/policyListMod'), self.routeObj)
                  cb(null, require('./pages/predictManage/policyManage/policyList/policyListView'))
                }, 'policyList')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/policyEdit',
                name: '前策政策信息编辑',
                routeObj: {
                     namespace: 'policyEditModel',
                    path: 'predictManage/policyEdit',
                    urlArray: ["/home/predictManage/policyEditDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/policyManage/policyEdit/policyEditMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/policyManage/policyEdit/policyEditView'))
                }, 'policyEdit')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/weekReport',
                name: '周报管理',
                routeObj: {
                     namespace: 'weekReportModel',
                    path: 'predictManage/weekReport',
                    urlArray: ["/home/predictManage/weekReportDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/weekReport/weekReportMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/weekReport/weekReportView'))
                }, 'weekReport')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/weekReportDetail',
                name: '竞品周报信息',
                routeObj: {
                     namespace: 'weekReportDetailModel',
                    path: 'predictManage/weekReportDetail',
                    urlArray: ["/home/predictManage/weekReportDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/weekReportDetail/weekReportDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/weekReportDetail/weekReportDetailView'))
                }, 'weekReportDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/groupWeekReportDetail',
                name: '集团周报信息',
                routeObj: {
                     namespace: 'groupWeekReportDetailModel',
                    path: 'predictManage/groupWeekReportDetail',
                    urlArray: ["/home/predictManage/groupWeekReportDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/groupWeekReportDetail/groupWeekReportDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/groupWeekReportDetail/groupWeekReportDetailView'))
                }, 'groupWeekReportDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/kernelGoodsDetail',
                name: '核心竞品信息',
                routeObj: {
                     namespace: 'kernelGoodsDetailModel',
                    path: 'predictManage/kernelGoodsDetail',
                    urlArray: ["/home/predictManage/kernelGoodsDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/kernelGoodsDetail/kernelGoodsDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/kernelGoodsDetail/kernelGoodsDetailView'))
                }, 'kernelGoodsDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/monthReport',
                name: '月报管理',
                routeObj: {
                     namespace: 'monthReportModel',
                    path: 'predictManage/monthReport',
                    urlArray: ["/home/predictManage/monthReportDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/monthReport/monthReportMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/monthReport/monthReportView'))
                }, 'monthReport')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/monthReportDetail',
                name: '市场月报信息',
                routeObj: {
                     namespace: 'monthReportDetailModel',
                    path: 'predictManage/monthReportDetail',
                    urlArray: ["/home/predictManage/monthReportDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/monthReportDetail/monthReportDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/monthReportDetail/monthReportDetailView'))
                }, 'monthReportDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/groupMonthReportDetail',
                name: '集团月报信息',
                routeObj: {
                     namespace: 'groupMonthReportDetailModel',
                    path: 'predictManage/groupMonthReportDetail',
                    urlArray: ["/home/predictManage/groupMonthReportDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/groupReport/groupMonthReportDetail/groupMonthReportDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/groupReport/groupMonthReportDetail/groupMonthReportDetailView'))
                }, 'groupMonthReportDetail')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/soilFilmMarket',
                name: '土拍市场',
                routeObj: {
                     namespace: 'soilFilmMarketModel',
                    path: 'predictManage/soilFilmMarket',
                    urlArray: ["/home/predictManage/soilFilmMarketDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/soilFilmMarkets/soilFilmMarket/soilFilmMarketMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/soilFilmMarkets/soilFilmMarket/soilFilmMarketView'))
                }, 'soilFilmMarket')
            },
            onEnter: beforeEnter
          },
          {
            path: 'predictManage/soilFilmMarketDetail',
                name: '土拍市场详情',
                routeObj: {
                     namespace: 'soilFilmMarketDetailModel',
                    path: 'predictManage/soilFilmMarketDetail',
                    urlArray: ["/home/predictManage/soilFilmMarketDetailDetail"]
                },
            getComponent(nextState, cb) {
                let self = this
                require.ensure([], require => {
                    registerModel(app, require('./pages/predictManage/soilFilmMarkets/soilFilmMarketDetail/soilFilmMarketDetailMod'), self.routeObj)
                    cb(null, require('./pages/predictManage/soilFilmMarkets/soilFilmMarketDetail/soilFilmMarketDetailView'))
                }, 'soilFilmMarketDetail')
            },
            onEnter: beforeEnter
          },
          /***********************       报表管理        ****************************/
        {
          path: 'statementAdmin/zmzjBi',
          name: '全民营销报表',
          routeObj: {
            namespace: 'zmzjBiModel',
            path: 'statementAdmin/zmzjBi',
            urlArray: ['/home/statementAdmin/zmzjBi']
          },
          getComponent(nextState, cb) {
            let self = this
            require.ensure([], require => {
              registerModel(app, require('./pages/statementAdmin/zmzjBi/zmzjBiMod'), self.routeObj)
              cb(null, require('./pages/statementAdmin/zmzjBi/zmzjBiView'))
            }, 'zmzjBiMod')
          },
          onEnter: beforeEnter
        },

                 /***********************       二级经纪人设置       ****************************/
                
      
        {
          path: 'setCenter/activityRulesList',
          name: '二级经纪人活动规则',
          routeObj: {
            namespace: 'activityRulesListMod',
            path: 'setCenter/activityRulesList',
            urlArray: ['/home/setCenter/activityRulesList']
          },
          getComponent(nextState, cb) {
            let self = this;
            require.ensure([], require => {
              registerModel(app, require('./pages/setCenter/activityRulesList/activityRulesListMod'), self.routeObj);
              cb(null, require('./pages/setCenter/activityRulesList/activityRulesListView'));
            }, 'activityRulesList');
          },
          onEnter: beforeEnter
        },
          /***********************       错误处理        ****************************/
        {
          path: '*',
          name: 'error',
          getComponent(nextState, cb) {
            require.ensure([], require => {
              cb(null, require('./widget/error/'))
            }, 'error')
          },
          onEnter: beforeEnter
        },
      ],
    },
  ]

  getPathKeyRoutes(app, routes)
  return <Router history={history} routes={routes} />
}

Routers.propTypes = {
  history: PropTypes.object,
  app: PropTypes.object,
}
export default Routers
